2018-01-11 18:08:28 -05:00
|
|
|
// Regression test for issue #46557
|
|
|
|
|
|
|
|
|
|
fn gimme_static_mut() -> &'static mut u32 {
|
2018-10-14 15:12:02 +01:00
|
|
|
let ref mut x = 1234543;
|
|
|
|
|
x //~ ERROR cannot return value referencing temporary value [E0515]
|
2018-01-11 18:08:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|