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