]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0308]: mismatched types |
94222f64 | 2 | --> $DIR/type-mismatch.rs:8:27 |
1b1a35ee XL |
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); | |
c295e0f8 | 10 | | ~~ |
1b1a35ee XL |
11 | |
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0308`. |