mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
22 lines
660 B
Plaintext
22 lines
660 B
Plaintext
error[E0428]: the name `A` is defined multiple times
|
|
--> $DIR/multiple_decls.rs:5:1
|
|
|
|
|
LL | const A: () = ();
|
|
| ----------------- previous definition of the value `A` here
|
|
LL | #[eii(A)]
|
|
LL | static A: u64;
|
|
| ^^^^^^^^^^^^^^ `A` redefined here
|
|
|
|
|
= note: `A` must be defined only once in the value namespace of this module
|
|
|
|
error[E0423]: expected function or static, found constant `A`
|
|
--> $DIR/multiple_decls.rs:5:8
|
|
|
|
|
LL | static A: u64;
|
|
| ^ not a function or static
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
Some errors have detailed explanations: E0423, E0428.
|
|
For more information about an error, try `rustc --explain E0423`.
|