new_ret_no_self added test cases
This commit is contained in:
parent
a624583557
commit
30ffc17ef7
@ -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 New Issue
Block a user