We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a624583 commit 30ffc17Copy full SHA for 30ffc17
tests/ui/new_ret_no_self.rs
@@ -158,6 +158,20 @@ impl GenericReturnerBad {
158
struct NestedReturnerOk;
159
160
impl NestedReturnerOk {
161
- // should trigger lint
+ // should not trigger lint
162
pub fn new() -> (Option<Self>, u32) { unimplemented!(); }
163
}
164
+
165
+struct NestedReturnerOk2;
166
167
+impl NestedReturnerOk2 {
168
169
+ pub fn new() -> ((Self, u32), u32) { unimplemented!(); }
170
+}
171
172
+struct NestedReturnerOk3;
173
174
+impl NestedReturnerOk3 {
175
176
+ pub fn new() -> Option<(Self, u32)> { unimplemented!(); }
177
0 commit comments