about summary refs log tree commit diff
path: root/tests/ui/parser/struct-literal-in-if.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/struct-literal-in-if.rs')
-rw-r--r--tests/ui/parser/struct-literal-in-if.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/ui/parser/struct-literal-in-if.rs b/tests/ui/parser/struct-literal-in-if.rs
deleted file mode 100644
index c4a253c3da2..00000000000
--- a/tests/ui/parser/struct-literal-in-if.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-struct Foo {
-    x: isize,
-}
-
-impl Foo {
-    fn hi(&self) -> bool {
-        true
-    }
-}
-
-fn main() {
-    if Foo { //~ ERROR struct literals are not allowed here
-        x: 3
-    }.hi() {
-        println!("yo");
-    }
-    if let true = Foo { //~ ERROR struct literals are not allowed here
-        x: 3
-    }.hi() {
-        println!("yo");
-    }
-}