You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiling playground v0.0.1 (/playground)
error: missing type to the right of `=`
--> src/lib.rs:7:13
|
7 | impl Foo<N = const 3> for Bar {
| ^
|
help: to constrain the associated type, add a type after `=`
|
7 | impl Foo<N = TheTypeconst 3> for Bar {
| +++++++
help: remove the `=` if `N` is a type
|
7 - impl Foo<N = const 3> for Bar {
7 + impl Foo<N const 3> for Bar {
|
error: expected one of `,`, `>`, a const expression, lifetime, or type, found keyword `const`
--> src/lib.rs:7:14
|
7 | impl Foo<N = const 3> for Bar {
| ^^^^^ expected one of `,`, `>`, a const expression, lifetime, or type
error: could not compile `playground` due to 2 previous errors
Notice the TheTypeconst in the above error message.
I've checked if this is the case on nightly, and at the time of this filing, this
is also an issue on nightly.
Activity
notriddle commentedon Sep 16, 2021
@rustbot claim
feat(rustc_parse): recover from pre-RFC-2000 const generics syntax
Rollup merge of rust-lang#89029 - notriddle:notriddle/issue-89013, r=…
Rollup merge of rust-lang#89029 - notriddle:notriddle/issue-89013, r=…