1 error[E0308]: mismatched types
2 --> $DIR/type-mismatch.rs:12:27
4 LL | assert_eq!(R.method::<1u16>(), 1);
5 | ^^^^ expected `u8`, found `u16`
7 help: change the type of the numeric literal from `u16` to `u8`
9 LL | assert_eq!(R.method::<1u8>(), 1);
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0308`.