2016-05-02 04:26:34 -05:00
|
|
|
static foo: i32 = 0;
|
|
|
|
|
|
|
|
fn bar(foo: i32) {}
|
2016-06-03 15:15:00 -05:00
|
|
|
//~^ ERROR function parameters cannot shadow statics
|
|
|
|
//~| cannot be named the same as a static
|
2016-05-02 04:26:34 -05:00
|
|
|
|
|
|
|
mod submod {
|
|
|
|
pub static answer: i32 = 42;
|
|
|
|
}
|
|
|
|
|
|
|
|
use self::submod::answer;
|
|
|
|
|
|
|
|
fn question(answer: i32) {}
|
2016-06-03 15:15:00 -05:00
|
|
|
//~^ ERROR function parameters cannot shadow statics
|
|
|
|
//~| cannot be named the same as a static
|
2016-05-02 04:26:34 -05:00
|
|
|
fn main() {
|
|
|
|
}
|