]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/different_generic_args_array.stderr
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / different_generic_args_array.stderr
1 error[E0308]: mismatched types
2   --> $DIR/different_generic_args_array.rs:9:9
3    |
4 LL |     x = Const::<{ [4] }> {};
5    |         ^^^^^^^^^^^^^^^^^^^ expected `3_usize`, found `4_usize`
6    |
7    = note: expected struct `Const<[3_usize]>`
8               found struct `Const<[4_usize]>`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0308`.