about summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0490.rs
blob: 304548215dc25d0964e57435de7d2b242a6ebb00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// revisions: base nll
// ignore-compare-mode-nll
//[nll] compile-flags: -Z borrowck=mir

fn f<'a, 'b>(y: &'b ()) {
    let x: &'a _ = &y;
    //[base]~^ E0490
    //[base]~| E0495
    //[base]~| E0495
    //[nll]~^^^^ lifetime may not live long enough
    //[nll]~| E0597
}

fn main() {}