rust/tests/ui/const-generics/early/const-param-shadowing.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

15 lines
487 B
Plaintext

error[E0747]: type provided when a constant was expected
--> $DIR/const-param-shadowing.rs:3:34
|
LL | fn test<const N: usize>() -> Foo<N> {
| ^
|
help: if this generic argument was intended as a const parameter, surround it with braces
|
LL | fn test<const N: usize>() -> Foo<{ N }> {
| + +
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0747`.