]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-param-shadowing.stderr
Auto merge of #87150 - rusticstuff:simplify_wrapping_neg, r=m-ou-se
[rust.git] / src / test / ui / const-generics / const-param-shadowing.stderr
1 error[E0747]: type provided when a constant was expected
2   --> $DIR/const-param-shadowing.rs:3:34
3    |
4 LL | fn test<const N: usize>() -> Foo<N> {
5    |                                  ^
6    |
7 help: if this generic argument was intended as a const parameter, surround it with braces
8    |
9 LL | fn test<const N: usize>() -> Foo<{ N }> {
10    |                                  ^   ^
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0747`.