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

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

7 lines
124 B
Rust
Raw Normal View History

2017-12-11 01:00:20 +08:00
fn bar<'a>() -> &'a mut u32 {
&mut 4
2019-05-03 06:34:15 +08:00
//~^ ERROR cannot return reference to temporary value [E0515]
2017-12-11 01:00:20 +08:00
}
fn main() { }