mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
new_ret_no_self added test cases
This commit is contained in:
parent
a624583557
commit
30ffc17ef7
1 changed files with 15 additions and 1 deletions
|
@ -158,6 +158,20 @@ impl GenericReturnerBad {
|
|||
struct NestedReturnerOk;
|
||||
|
||||
impl NestedReturnerOk {
|
||||
// should trigger lint
|
||||
// should not trigger lint
|
||||
pub fn new() -> (Option<Self>, u32) { unimplemented!(); }
|
||||
}
|
||||
|
||||
struct NestedReturnerOk2;
|
||||
|
||||
impl NestedReturnerOk2 {
|
||||
// should not trigger lint
|
||||
pub fn new() -> ((Self, u32), u32) { unimplemented!(); }
|
||||
}
|
||||
|
||||
struct NestedReturnerOk3;
|
||||
|
||||
impl NestedReturnerOk3 {
|
||||
// should not trigger lint
|
||||
pub fn new() -> Option<(Self, u32)> { unimplemented!(); }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue