This very simple example (Playground link):
#![feature(const_generics)]
struct Generic<const V: usize>;
fn main() {
let _ = Generic::<0>;
}
results in: error: internal compiler error: src/librustc_typeck/collect.rs:1407: unexpected const parent path def Def(Ctor(Struct, Const), DefId(0:13 ~ playground[d52b]::Generic[0]::{{constructor}}[0])). Changing it to use curly braces around 0 does not help.
This very simple example (Playground link):
results in:
error: internal compiler error: src/librustc_typeck/collect.rs:1407: unexpected const parent path def Def(Ctor(Struct, Const), DefId(0:13 ~ playground[d52b]::Generic[0]::{{constructor}}[0])). Changing it to use curly braces around0does not help.