Type alias do not used in functions #76606
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
First, create new lib with type alias and function:
Then, we use this crate in our program:
OPERATION_TYPE_BUY
has typeOperationType
, this type we expect inlimit_order
function, but we have error:If our function expect
OperationType
type, why rust asked me convert to String?Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: