]> git.proxmox.com Git - rustc.git/blob - tests/ui/const-generics/type-dependent/type-mismatch.min.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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`.