]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-param-shadowing.stderr
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[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:5: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, try surrounding 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`.