Sign in
fuchsia
/
third_party
/
rust
/
9f7b58f3c94708f344237f826b4f96a659b5fc82
/
.
/
src
/
test
/
ui
/
estr-subtyping.rs
blob: 9c5825fff8552456c33f6003babdf82fbeedef92 [
file
] [
log
] [
blame
]
fn
wants_uniq
(
x
:
String
)
{
}
fn
wants_slice
(
x
:
&
str
)
{
}
fn
has_uniq
(
x
:
String
)
{
wants_uniq
(
x
);
wants_slice
(&*
x
);
}
fn
has_slice
(
x
:
&
str
)
{
wants_uniq
(
x
);
//~ ERROR mismatched types
wants_slice
(
x
);
}
fn
main
()
{
}