]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-28472.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-28472.stderr
1 error[E0428]: the name `foo` is defined multiple times
2   --> $DIR/issue-28472.rs:16:3
3    |
4 LL |     fn foo();
5    |     --------- previous definition of the value `foo` here
6 LL | 
7 LL | /   pub //~ ERROR the name `foo` is defined multiple times
8 LL | |   fn foo();
9    | |___________^ `foo` redefined here
10    |
11    = note: `foo` must be defined only once in the value namespace of this module
12
13 error[E0428]: the name `foo` is defined multiple times
14   --> $DIR/issue-28472.rs:19:3
15    |
16 LL |     fn foo();
17    |     --------- previous definition of the value `foo` here
18 ...
19 LL | /   pub //~ ERROR the name `foo` is defined multiple times
20 LL | |   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
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0428`.