]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/type-dependent/type-mismatch.stderr
Merge commit 'da5a6fb1b65ec6581a67e942a3850f6bc15a552c' into clippyup
[rust.git] / src / test / ui / const-generics / type-dependent / type-mismatch.stderr
1 warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
2   --> $DIR/type-mismatch.rs:1:12
3    |
4 LL | #![feature(const_generics)]
5    |            ^^^^^^^^^^^^^^
6    |
7    = note: `#[warn(incomplete_features)]` on by default
8    = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9
10 error[E0308]: mismatched types
11   --> $DIR/type-mismatch.rs:10:27
12    |
13 LL |     assert_eq!(R.method::<1u16>(), 1);
14    |                           ^^^^ expected `u8`, found `u16`
15    |
16 help: change the type of the numeric literal from `u16` to `u8`
17    |
18 LL |     assert_eq!(R.method::<1u8>(), 1);
19    |                           ^^^
20
21 error: aborting due to previous error; 1 warning emitted
22
23 For more information about this error, try `rustc --explain E0308`.