1 error[E0308]: mismatched types
2 --> $DIR/const-type-mismatch.rs:4:21
4 LL | const TWELVE: u16 = TEN + 2;
5 | ^^^^^^^ expected `u16`, found `u8`
7 error[E0308]: mismatched types
8 --> $DIR/const-type-mismatch.rs:9:27
10 LL | const ALSO_TEN: u16 = TEN;
11 | ^^^ expected `u16`, found `u8`
13 error: aborting due to 2 previous errors
15 For more information about this error, try `rustc --explain E0308`.