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 17:12:23 +00:00
fn foo(x: &u32) -> &'static u32 {
&*x
2022-04-01 17:13:25 +00:00
//~^ ERROR lifetime may not live long enough
2018-01-10 17:12:23 +00:00
}
fn main() {}