mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 12:39:31 +03:00
87d8f5885b
- On `const` and `static` point at the type (like we do for let bindings) - On fn calls, point at const parameter in fn definition - On type, point at const parameter in type definition - On array type lengths, explain that array length is always `usize` - On enum variant discriminant, mention `repr`
12 lines
361 B
Plaintext
12 lines
361 B
Plaintext
error[E0308]: mismatched types
|
|
--> $DIR/const-eval-span.rs:9:9
|
|
|
|
|
LL | V = CONSTANT,
|
|
| ^^^^^^^^ expected `isize`, found `S`
|
|
|
|
|
= note: enum variant discriminant can only be of a primitive type compatible with the enum's `repr`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|