2020-12-30 23:07:41 +00:00
|
|
|
error[E0747]: type provided when a constant was expected
|
2024-06-26 16:01:38 +00:00
|
|
|
--> $DIR/suggest_const_for_array.rs:6:15
|
2020-12-30 23:07:41 +00:00
|
|
|
|
|
2024-06-26 16:01:38 +00:00
|
|
|
LL | example::<[usize; 3]>();
|
|
|
|
| ^^^^^^^^^^ help: array type provided where a `usize` was expected, try: `{ 3 }`
|
2020-12-30 23:07:41 +00:00
|
|
|
|
|
|
|
error[E0747]: type provided when a constant was expected
|
2024-07-05 09:16:00 +00:00
|
|
|
--> $DIR/suggest_const_for_array.rs:8:15
|
2020-12-30 23:07:41 +00:00
|
|
|
|
|
2024-06-26 16:01:38 +00:00
|
|
|
LL | example::<[usize; 4 + 5]>();
|
|
|
|
| ^^^^^^^^^^^^^^ help: array type provided where a `usize` was expected, try: `{ 4 + 5 }`
|
2020-12-30 23:07:41 +00:00
|
|
|
|
2024-07-05 09:16:00 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2020-12-30 23:07:41 +00:00
|
|
|
|
2024-07-05 09:16:00 +00:00
|
|
|
For more information about this error, try `rustc --explain E0747`.
|