1 static foo: i32 = 0; 2 bar(foo: i32)3fn bar(foo: i32) {} 4 //~^ ERROR function parameters cannot shadow statics 5 //~| cannot be named the same as a static 6 7 mod submod { 8 pub static answer: i32 = 42; 9 } 10 11 use self::submod::answer; 12 question(answer: i32)13fn question(answer: i32) {} 14 //~^ ERROR function parameters cannot shadow statics 15 //~| cannot be named the same as a static main()16fn main() { 17 } 18