]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/type-dependent/type-mismatch.full.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / const-generics / type-dependent / type-mismatch.full.stderr
CommitLineData
1b1a35ee 1error[E0308]: mismatched types
94222f64 2 --> $DIR/type-mismatch.rs:8:27
1b1a35ee
XL
3 |
4LL | assert_eq!(R.method::<1u16>(), 1);
5 | ^^^^ expected `u8`, found `u16`
6 |
7help: change the type of the numeric literal from `u16` to `u8`
8 |
9LL | assert_eq!(R.method::<1u8>(), 1);
c295e0f8 10 | ~~
1b1a35ee
XL
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0308`.