]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/bare-struct-body.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / test / ui / parser / bare-struct-body.rs
1 struct Foo {
2     val: (),
3 }
4
5 fn foo() -> Foo { //~ ERROR struct literal body without path
6     val: (),
7 }
8
9 fn main() {
10     let x = foo();
11     x.val == 42; //~ ERROR mismatched types
12     let x = { //~ ERROR struct literal body without path
13         val: (),
14     };
15 }