]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-type-mismatch.stderr
Rollup merge of #106962 - compiler-errors:use-sugg-span, r=oli-obk
[rust.git] / tests / ui / consts / const-type-mismatch.stderr
1 error[E0308]: mismatched types
2   --> $DIR/const-type-mismatch.rs:4:21
3    |
4 LL | const TWELVE: u16 = TEN + 2;
5    |                     ^^^^^^^ expected `u16`, found `u8`
6
7 error[E0308]: mismatched types
8   --> $DIR/const-type-mismatch.rs:9:27
9    |
10 LL |     const ALSO_TEN: u16 = TEN;
11    |                           ^^^ expected `u16`, found `u8`
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0308`.