Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
issues
/
issue-11493.rs
blob: b28c173b19b7187b0491c4d59514f695eb0a14fb [
file
] [
log
] [
blame
]
fn
id
<
T
>(
x
:
T
)
->
T
{
x
}
fn
main
()
{
let
x
=
Some
(
3
);
let
y
=
x
.
as_ref
().
unwrap_or
(&
id
(
5
));
//~ ERROR
&
y
;
}