]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/or-patterns/issue-69875-should-have-been-expanded-earlier-non-exhaustive.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / or-patterns / issue-69875-should-have-been-expanded-earlier-non-exhaustive.rs
index 59533cefea64c8caf97c259725fd31478432b3ae..8e83acc6dcbc00a2e391f77981afca30153d11d7 100644 (file)
@@ -1,7 +1,7 @@
 #![feature(or_patterns)]
 
 fn main() {
-    let 0 | (1 | 2) = 0; //~ ERROR refutable pattern in local binding
+    let (0 | (1 | 2)) = 0; //~ ERROR refutable pattern in local binding
     match 0 {
         //~^ ERROR non-exhaustive patterns
         0 | (1 | 2) => {}