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
--> src/lib.rs:2:5
|
1 | fn six<T>() -> usize where u8: Into<T> {
| - ----- expected `usize` because of return type
| |
| found this type parameter
2 | 6_u8.into()
| ^^^^^^^^^^^ expected `usize`, found type parameter `T`
|
= note: expected type `usize`
found type parameter `T`
I tried this code:
I expected to see this happen: code compiles
Instead, this happened: type mismatch error
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: