mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-18 08:46:38 +00:00
9 lines
198 B
Rust
9 lines
198 B
Rust
// Regression test for issue #46557
|
|
|
|
fn gimme_static_mut() -> &'static mut u32 {
|
|
let ref mut x = 1234543;
|
|
x //~ ERROR cannot return value referencing temporary value [E0515]
|
|
}
|
|
|
|
fn main() {}
|