rust/src/test/ui/issues/issue-46472.rs
Christopher Vittal cfdd6ba77e Update tests
2019-05-03 03:11:37 -04:00

7 lines
124 B
Rust

fn bar<'a>() -> &'a mut u32 {
&mut 4
//~^ ERROR cannot return reference to temporary value [E0515]
}
fn main() { }