Closed
Description
This code (playground):
#![feature(const_generics)]
struct Generic<const C: usize>;
fn main() {
let _: Generic<0> = Generic::<1>;
}
results in
error[E0308]: mismatched types
--> src/main.rs:6:25
|
6 | let _: Generic<0> = Generic::<1>;
| ^^^^^^^^^^^^ expected `0usize`, found `1usize`
|
= note: expected type `Generic<>`
found type `Generic<>`
with missing const arguments in the note: ...
at the bottom.