Sign in
android
/
toolchain
/
rustc
/
d2dbbcd40813d506244f1255bc2c84088a0197e1
/
.
/
src
/
test
/
ui
/
span
/
issue-15480.fixed
blob: e6d1a4dd32806e4c75ff4dd4a7a5ffeedf2f02d8 [
file
] [
log
] [
blame
]
// run-rustfix
fn id
<
T
>(
x
:
T
)
->
T
{
x
}
fn main
()
{
let
binding
=
id
(
3
);
let
v
=
vec
![
&
binding
];
//~^^ ERROR temporary value dropped while borrowed
for
&&
x
in
&
v
{
println
!(
"{}"
,
x
+
3
);
}
}