summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/early/const-param-shadowing.stderr
blob: 3ae2c9c8e60b1190496e90d6e0d9117733549fde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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`.