1 error: unexpected `const` parameter declaration
2 --> $DIR/const-param-decl-on-type-instead-of-impl.rs:2:12
4 LL | impl NInts<const N: usize> {}
5 | ^^^^^^^^^^^^^^ expected a `const` expression, not a parameter declaration
7 help: `const` parameters must be declared for the `impl`
9 LL | impl<const N: usize> NInts<N> {}
12 error: unexpected `const` parameter declaration
13 --> $DIR/const-param-decl-on-type-instead-of-impl.rs:8:17
15 LL | fn banana(a: <T<const N: usize>>::BAR) {}
16 | ^^^^^^^^^^^^^^ expected a `const` expression, not a parameter declaration
18 error: unexpected `const` parameter declaration
19 --> $DIR/const-param-decl-on-type-instead-of-impl.rs:12:26
21 LL | path::path::Struct::<const N: usize>()
22 | ^^^^^^^^^^^^^^ expected a `const` expression, not a parameter declaration
24 error[E0433]: failed to resolve: use of undeclared crate or module `path`
25 --> $DIR/const-param-decl-on-type-instead-of-impl.rs:12:5
27 LL | path::path::Struct::<const N: usize>()
28 | ^^^^ use of undeclared crate or module `path`
30 error[E0412]: cannot find type `T` in this scope
31 --> $DIR/const-param-decl-on-type-instead-of-impl.rs:8:15
33 LL | fn banana(a: <T<const N: usize>>::BAR) {}
34 | ^ not found in this scope
36 error[E0308]: mismatched types
37 --> $DIR/const-param-decl-on-type-instead-of-impl.rs:5:17
40 | -- ^^ expected `()`, found integer
42 | expected due to this
44 error: aborting due to 6 previous errors
46 Some errors have detailed explanations: E0308, E0412, E0433.
47 For more information about an error, try `rustc --explain E0308`.