mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
55559d93e7
If a const is expected, resolve a const. If a type is expected, resolve a type. Don't try to resolve a type first falling back to consts.
15 lines
335 B
Plaintext
15 lines
335 B
Plaintext
error: expected type, found constant
|
|
--> $DIR/shadowed-const.rs:19:20
|
|
|
|
|
LL | const QUX: Self::BAR;
|
|
| ^^^ unexpected constant
|
|
|
|
|
note: the associated constant is defined here
|
|
--> $DIR/shadowed-const.rs:18:3
|
|
|
|
|
LL | const BAR: usize;
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|