2017-08-16 21:23:44 +03:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-43420-no-over-suggest.rs:18:9
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | foo(&a); //~ ERROR mismatched types
|
2017-08-16 21:23:44 +03:00
|
|
|
| ^^ expected slice, found struct `std::vec::Vec`
|
|
|
|
|
|
|
|
|
= note: expected type `&[u16]`
|
|
|
|
found type `&std::vec::Vec<u8>`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|