summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/bare-struct-body.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/bare-struct-body.rs')
-rw-r--r--src/test/ui/parser/bare-struct-body.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/ui/parser/bare-struct-body.rs b/src/test/ui/parser/bare-struct-body.rs
deleted file mode 100644
index a557e861d..000000000
--- a/src/test/ui/parser/bare-struct-body.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-struct Foo {
- val: (),
-}
-
-fn foo() -> Foo { //~ ERROR struct literal body without path
- val: (),
-}
-
-fn main() {
- let x = foo();
- x.val == 42; //~ ERROR mismatched types
- let x = { //~ ERROR struct literal body without path
- val: (),
- };
-}