summaryrefslogtreecommitdiffstats
path: root/tests/ui/span/issue-40157.rs
blob: 03ad21ae773af952409d0485ef2141ead77805f0 (plain)
1
2
3
4
fn main () {
    {println!("{:?}", match { let foo = vec![1, 2]; foo.get(1) } { x => x });}
     //~^ ERROR does not live long enough
}