]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0490.rs
Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jsha
[rust.git] / src / test / ui / error-codes / E0490.rs
1 // revisions: base nll
2 // ignore-compare-mode-nll
3 //[nll] compile-flags: -Z borrowck=mir
4
5 fn f<'a, 'b>(y: &'b ()) {
6     let x: &'a _ = &y;
7     //[base]~^ E0490
8     //[base]~| E0495
9     //[base]~| E0495
10     //[nll]~^^^^ lifetime may not live long enough
11     //[nll]~| E0597
12 }
13
14 fn main() {}