]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/type-dependent/type-mismatch.full.stderr
Auto merge of #106812 - oli-obk:output_filenames, r=petrochenkov
[rust.git] / tests / ui / const-generics / type-dependent / type-mismatch.full.stderr
1 error[E0308]: mismatched types
2   --> $DIR/type-mismatch.rs:8:27
3    |
4 LL |     assert_eq!(R.method::<1u16>(), 1);
5    |                           ^^^^ expected `u8`, found `u16`
6    |
7 help: change the type of the numeric literal from `u16` to `u8`
8    |
9 LL |     assert_eq!(R.method::<1u8>(), 1);
10    |                            ~~
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.