]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/type-dependent/type-mismatch.min.stderr
Auto merge of #87915 - estebank:fancy-spans, r=oli-obk
[rust.git] / src / test / ui / const-generics / type-dependent / type-mismatch.min.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`.