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/main.rs:4:13
|
4 | consume(&123);
| ^^^^
| |
| expected i32, found &{integer}
| help: consider removing the borrow: `123`
|
= note: expected type `i32`
found type `&{integer}`
expected in the first example's error message is related to the call's context, but in the second one, it is related to the function's signature. Is it a bug?
rustc
1.39.0 stable
The text was updated successfully, but these errors were encountered:
Consider these two examples:
Error:
Error:
expected
in the first example's error message is related to the call's context, but in the second one, it is related to the function's signature. Is it a bug?rustc
1.39.0 stable
The text was updated successfully, but these errors were encountered: