Skip to content

Commit

Permalink
new_ret_no_self: add sample from #3313 to Known Problems section.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Oct 18, 2018
1 parent 8f5a248 commit 81cb5fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clippy_lints/src/methods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,8 @@ declare_clippy_lint! {
/// **Why is this bad?** As a convention, `new` methods are used to make a new
/// instance of a type.
///
/// **Known problems:** None.
/// **Known problems:** The lint fires when the return type is wrapping `Self`.
/// Example: `fn new() -> Result<Self, E> {}`
///
/// **Example:**
/// ```rust
Expand Down

0 comments on commit 81cb5fe

Please sign in to comment.