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-10 17:00:20 +00:00
fn bar<'a>() -> &'a mut u32 {
&mut 4
2019-05-02 22:34:15 +00:00
//~^ ERROR cannot return reference to temporary value [E0515]
2017-12-10 17:00:20 +00:00
}
fn main() { }