Sign in
fuchsia
/
third_party
/
rust
/
52fec814db1f5e9c000b8432cc5a4fd57c9df732
/
.
/
src
/
test
/
ui
/
nll
/
return-ref-mut-issue-46557.rs
blob: b535ab1f5e13952a390d1e4cc5c874be2c917cfc [
file
] [
log
] [
blame
]
// Regression test for issue #46557
#![
feature
(
nll
)]
#![
allow
(
dead_code
)]
fn
gimme_static_mut
()
->
&
'
static
mut
u32
{
let
ref
mut
x
=
1234543
;
x
//~ ERROR cannot return value referencing temporary value [E0515]
}
fn
main
()
{}