]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/suggest_const_for_array.stderr
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / suggest_const_for_array.stderr
1 error[E0747]: type provided when a constant was expected
2   --> $DIR/suggest_const_for_array.rs:6:13
3    |
4 LL |   example::<[usize; 3]>();
5    |             ^^^^^^^^^^ help: array type provided where a `usize` was expected, try: `{ 3 }`
6
7 error[E0747]: type provided when a constant was expected
8   --> $DIR/suggest_const_for_array.rs:8:13
9    |
10 LL |   example::<[usize; 4+5]>();
11    |             ^^^^^^^^^^^^ help: array type provided where a `usize` was expected, try: `{ 4+5 }`
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0747`.