]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-18252.stderr
Auto merge of #100395 - Dylan-DPC:rollup-ajrwo1s, r=Dylan-DPC
[rust.git] / src / test / ui / resolve / issue-18252.stderr
1 error[E0423]: expected function, tuple struct or tuple variant, found struct variant `Foo::Variant`
2   --> $DIR/issue-18252.rs:6:13
3    |
4 LL |     Variant { x: usize }
5    |     -------------------- `Foo::Variant` defined here
6 ...
7 LL |     let f = Foo::Variant(42);
8    |             ^^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `Foo::Variant { x: val }`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0423`.