2020-11-13 13:23:37 -06:00
|
|
|
error[E0747]: type provided when a constant was expected
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/const-param-shadowing.rs:3:34
|
2020-11-13 13:23:37 -06:00
|
|
|
|
|
|
|
|
LL | fn test<const N: usize>() -> Foo<N> {
|
|
|
|
| ^
|
|
|
|
|
|
2021-02-13 22:35:18 -06:00
|
|
|
help: if this generic argument was intended as a const parameter, surround it with braces
|
2020-11-13 13:23:37 -06:00
|
|
|
|
|
|
|
|
LL | fn test<const N: usize>() -> Foo<{ N }> {
|
2021-06-21 21:07:19 -05:00
|
|
|
| + +
|
2020-11-13 13:23:37 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0747`.
|