File tree 2 files changed +2
-6
lines changed
src/tools/clippy/tests/ui
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -390,9 +390,7 @@ mod issue7344 {
390
390
391
391
impl < T > RetImplTraitSelf2 < T > {
392
392
// should not trigger lint
393
- fn new ( t : T ) -> impl Trait2 < ( ) , Self > {
394
- unimplemented ! ( )
395
- }
393
+ fn new ( t : T ) -> impl Trait2 < ( ) , Self > { }
396
394
}
397
395
398
396
struct RetImplTraitNoSelf2 < T > ( T ) ;
@@ -401,7 +399,6 @@ mod issue7344 {
401
399
// should trigger lint
402
400
fn new ( t : T ) -> impl Trait2 < ( ) , i32 > {
403
401
//~^ ERROR: methods called `new` usually return `Self`
404
- unimplemented ! ( )
405
402
}
406
403
}
407
404
Original file line number Diff line number Diff line change @@ -96,11 +96,10 @@ LL | | }
96
96
| |_________^
97
97
98
98
error: methods called `new` usually return `Self`
99
- --> tests/ui/new_ret_no_self.rs:402 :9
99
+ --> tests/ui/new_ret_no_self.rs:400 :9
100
100
|
101
101
LL | / fn new(t: T) -> impl Trait2<(), i32> {
102
102
LL | |
103
- LL | | unimplemented!()
104
103
LL | | }
105
104
| |_________^
106
105
You can’t perform that action at this time.
0 commit comments