diff options
Diffstat (limited to 'tests/ui/liveness/liveness-issue-2163.rs')
-rw-r--r-- | tests/ui/liveness/liveness-issue-2163.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/liveness/liveness-issue-2163.rs b/tests/ui/liveness/liveness-issue-2163.rs new file mode 100644 index 000000000..a632b5b9c --- /dev/null +++ b/tests/ui/liveness/liveness-issue-2163.rs @@ -0,0 +1,8 @@ +use std::vec::Vec; + +fn main() { + let a: Vec<isize> = Vec::new(); + a.iter().all(|_| -> bool { + //~^ ERROR mismatched types + }); +} |