]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/shadow.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / shadow.rs
index a394ef8f25c675b529db3c275eb97308fe835b5b..1fa9fc749a96a1fb1be91ef95e5fbddda482ae30 100644 (file)
@@ -88,4 +88,11 @@ pub async fn foo2(_a: i32, _b: i64) {
     let _b = _a;
 }
 
+fn ice_8748() {
+    let _ = [0; {
+        let x = 1;
+        if let Some(x) = Some(1) { x } else { 1 }
+    }];
+}
+
 fn main() {}