Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
nll
/
return-ref-mut-issue-46557.rs
blob: dca61d39dfe813e2e22f3a9a56e50eac5aa32cc8 [
file
] [
log
] [
blame
]
// 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
()
{}