about summary refs log tree commit diff
path: root/tests/ui/rfcs/rfc-0000-never_patterns/parse.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rfcs/rfc-0000-never_patterns/parse.rs')
-rw-r--r--tests/ui/rfcs/rfc-0000-never_patterns/parse.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/rfcs/rfc-0000-never_patterns/parse.rs b/tests/ui/rfcs/rfc-0000-never_patterns/parse.rs
index f254b9c201c..566bb071646 100644
--- a/tests/ui/rfcs/rfc-0000-never_patterns/parse.rs
+++ b/tests/ui/rfcs/rfc-0000-never_patterns/parse.rs
@@ -71,6 +71,7 @@ fn parse(x: Void) {
 
     let ! = x;
     let y @ ! = x;
+    //~^ ERROR: never patterns cannot contain variable bindings
 }
 
 fn foo(!: Void) {}