You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0308]: mismatched types
--> a.rs:8:9
|
8 | hey(foo);
| ^^^ expected struct `Bar`, found struct `Foo`
|
= note: expected type `std::vec::Vec<Bar>`
found type `std::vec::Vec<Foo>`
= help: here are some functions which might fulfill your needs:
- .to_vec()
which doesn't make sense since .to_vec() wouldn't in any case convert the inner type.
The text was updated successfully, but these errors were encountered:
Hey all,
With the following piece of code (rust playground):
rustc gives me the following error
which doesn't make sense since
.to_vec()
wouldn't in any case convert the inner type.The text was updated successfully, but these errors were encountered: