]> git.proxmox.com Git - rustc.git/blob - src/test/ui/span/issue-36537.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / span / issue-36537.rs
1 fn main() {
2 let p;
3 {
4 let a = 42;
5 p = &a;
6 //~^ ERROR `a` does not live long enough
7
8 }
9 p.use_ref();
10
11 }
12
13 trait Fake { fn use_mut(&mut self) { } fn use_ref(&self) { } }
14 impl<T> Fake for T { }