mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
16 lines
454 B
Plaintext
16 lines
454 B
Plaintext
error[E0308]: mismatched types
|
|
--> $DIR/const-type-mismatch.rs:4:21
|
|
|
|
|
LL | const TWELVE: u16 = TEN + 2;
|
|
| ^^^^^^^ expected `u16`, found `u8`
|
|
|
|
error[E0308]: mismatched types
|
|
--> $DIR/const-type-mismatch.rs:9:27
|
|
|
|
|
LL | const ALSO_TEN: u16 = TEN;
|
|
| ^^^ expected `u16`, found `u8`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|