rust/tests/ui/issues/issue-46983.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
107 B
Rust
Raw Normal View History

2018-01-10 11:12:23 -06:00
fn foo(x: &u32) -> &'static u32 {
&*x
2022-04-01 12:13:25 -05:00
//~^ ERROR lifetime may not live long enough
2018-01-10 11:12:23 -06:00
}
fn main() {}