]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-28472.stderr
Rollup merge of #97908 - iago-lito:stabilize_nonzero_checked_ops_constness, r=scottmcm
[rust.git] / src / test / ui / issues / issue-28472.stderr
1 error[E0428]: the name `foo` is defined multiple times
2   --> $DIR/issue-28472.rs:6:3
3    |
4 LL |     fn foo();
5    |     --------- previous definition of the value `foo` here
6 LL |
7 LL | /   pub
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:9:3
15    |
16 LL |     fn foo();
17    |     --------- previous definition of the value `foo` here
18 ...
19 LL | /   pub
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`.