]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-18252.rs
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / 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 function, tuple struct or tuple variant, found struct variant `Foo::Variant`
8 }