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