Files
rust/tests/ui/eii/static/multiple_decls.stderr
T
2026-04-12 11:06:40 +02:00

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`.