-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
should_implement_trait triggers on incompatible signatures #5612
Comments
Is the signature considered incompatible because the return type differs? After a quick look (I may be mistaken) this seems to be the intended behavior (and should probably be Here, the return type is associated to rust-clippy/clippy_lints/src/methods/mod.rs Line 3304 in e214ea8
... which means "not the unit type" according to this snippet ... rust-clippy/clippy_lints/src/methods/mod.rs Lines 3434 to 3446 in e214ea8
|
The return type of |
Another example from #9638 is when the orphan rules prevent an impl, e.g. you can't |
... and suggests implementing
FromStr
which has an incompatible signature.The text was updated successfully, but these errors were encountered: