summaryrefslogtreecommitdiffstats
path: root/tests/ui/inference/issue-113354.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/inference/issue-113354.rs')
-rw-r--r--tests/ui/inference/issue-113354.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/inference/issue-113354.rs b/tests/ui/inference/issue-113354.rs
new file mode 100644
index 000000000..ec33d1f8b
--- /dev/null
+++ b/tests/ui/inference/issue-113354.rs
@@ -0,0 +1,4 @@
+//run-rustfix
+fn main() {
+ let _ = || { while Some(_) = Some(1) { } }; //~ ERROR mismatched types
+}