2021-06-01 11:44:49 -05:00
|
|
|
error[E0128]: generic parameters with a default cannot use forward declared identifiers
|
2021-10-23 10:57:49 -05:00
|
|
|
--> $DIR/forward-declared.rs:1:29
|
2021-06-01 11:44:49 -05:00
|
|
|
|
|
|
|
|
LL | struct Foo<const N: usize = M, const M: usize = 10>;
|
|
|
|
| ^ defaulted generic parameters cannot be forward declared
|
|
|
|
|
|
|
|
error[E0128]: generic parameters with a default cannot use forward declared identifiers
|
2021-10-23 10:57:49 -05:00
|
|
|
--> $DIR/forward-declared.rs:4:27
|
2021-06-01 11:44:49 -05:00
|
|
|
|
|
|
|
|
LL | enum Bar<const N: usize = M, const M: usize = 10> {}
|
|
|
|
| ^ defaulted generic parameters cannot be forward declared
|
|
|
|
|
|
|
|
error[E0128]: generic parameters with a default cannot use forward declared identifiers
|
2021-10-23 10:57:49 -05:00
|
|
|
--> $DIR/forward-declared.rs:7:30
|
2021-06-01 11:44:49 -05:00
|
|
|
|
|
|
|
|
LL | struct Foo2<const N: usize = N>;
|
|
|
|
| ^ defaulted generic parameters cannot be forward declared
|
|
|
|
|
|
|
|
error[E0128]: generic parameters with a default cannot use forward declared identifiers
|
2021-10-23 10:57:49 -05:00
|
|
|
--> $DIR/forward-declared.rs:10:28
|
2021-06-01 11:44:49 -05:00
|
|
|
|
|
|
|
|
LL | enum Bar2<const N: usize = N> {}
|
|
|
|
| ^ defaulted generic parameters cannot be forward declared
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0128`.
|