Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
borrowck
/
issue-11493.fixed
blob: adf442a266a8a40977a8a4c01d437588d18e44ee [
file
] [
log
] [
blame
] [
edit
]
//@ run-rustfix
fn id
<
T
>(
x
:
T
)
->
T
{
x
}
fn main
()
{
let
x
=
Some
(
3
);
let
binding
=
id
(
5
);
let
y
=
x
.
as_ref
().
unwrap_or
(&
binding
);
//~ ERROR
let
_
=
&
y
;
}