rust/tests/ui/enum/error-variant-with-turbofishes.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
191 B
Rust
Raw Permalink Normal View History

2024-04-14 09:51:25 -05:00
enum Struct<const N: usize> { Variant { x: [(); N] } }
fn test() {
let x = Struct::<0>::Variant;
//~^ ERROR expected value, found struct variant `Struct<0>::Variant`
}
fn main() {}