Sign in
fuchsia
/
third_party
/
rust
/
5670d048c0f88af9976b5505c7853b23dd06770d
/
.
/
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
()
{}