False positive: methods called new
usually return Self
#1724
Labels
C-bug
Category: Clippy is not doing the correct thing
new
usually return Self
#1724
Consider this (rather silly) code:
If the
new
function is changed to this:It errors with
error[E0308]: mismatched types
The text was updated successfully, but these errors were encountered: