mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
8 lines
198 B
Rust
8 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() {}
|