Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
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
;
}