]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/issue-61882-2.rs
Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
[rust.git] / src / test / ui / self / issue-61882-2.rs
1 struct A<T>(T);
2
3 impl A<&'static u8> {
4     fn f() {
5         let x = 0;
6         Self(&x);
7         //~^ ERROR `x` does not live long enough
8     }
9 }
10
11 fn main() {}