fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0428]: the name `foo` is defined multiple times 2 --> $DIR/issue-28472.rs:6:3 3 | 4LL | fn foo(); 5 | --------- previous definition of the value `foo` here 6LL | 7LL | / pub 8LL | | fn foo(); 9 | |___________^ `foo` redefined here 10 | 11 = note: `foo` must be defined only once in the value namespace of this module 12 13error[E0428]: the name `foo` is defined multiple times 14 --> $DIR/issue-28472.rs:9:3 15 | 16LL | fn foo(); 17 | --------- previous definition of the value `foo` here 18... 19LL | / pub 20LL | | static mut foo: u32; 21 | |______________________^ `foo` redefined here 22 | 23 = note: `foo` must be defined only once in the value namespace of this module 24 25error: aborting due to 2 previous errors 26 27For more information about this error, try `rustc --explain E0428`.