Sign in
fuchsia
/
third_party
/
rust
/
20d43d03dd27568f609d621ce44673393e838892
/
.
/
src
/
test
/
ui
/
issues
/
issue-43420-no-over-suggest.rs
blob: 4365bff5af56682bf49fe7b8a25bcfc92a729d5d [
file
] [
log
] [
blame
]
// check that we substitute type parameters before we suggest anything - otherwise
// we would suggest function such as `as_slice` for the `&[u16]`.
fn
foo
(
b
:
&[
u16
])
{}
fn
main
()
{
let
a
:
Vec
<
u8
>
=
Vec
::
new
();
foo
(&
a
);
//~ ERROR mismatched types
}