]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-18252.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / issue-18252.rs
1 enum Foo {
2     Variant { x: usize }
3 }
4
5 fn main() {
6     let f = Foo::Variant(42);
7     //~^ ERROR expected value, found struct variant `Foo::Variant`
8 }