summaryrefslogtreecommitdiffstats
path: root/tests/ui/liveness/liveness-issue-2163.rs
blob: a632b5b9c93ca3f84d53cb653ca02c5c724de7e2 (plain)
1
2
3
4
5
6
7
8
use std::vec::Vec;

fn main() {
    let a: Vec<isize> = Vec::new();
    a.iter().all(|_| -> bool {
        //~^ ERROR mismatched types
    });
}