[new_without_default]: lifetimes are included in output
The comment was likely obsolete.
This commit is contained in:
parent
75370e0671
commit
7a06d7ec51
@ -84,7 +84,6 @@ impl<'c> LtKo<'c> {
|
||||
pub fn new() -> LtKo<'c> {
|
||||
unimplemented!()
|
||||
}
|
||||
// FIXME: that suggestion is missing lifetimes
|
||||
}
|
||||
|
||||
struct Private;
|
||||
|
@ -51,7 +51,7 @@ LL + }
|
||||
|
|
||||
|
||||
error: you should consider adding a `Default` implementation for `NewNotEqualToDerive`
|
||||
--> $DIR/new_without_default.rs:177:5
|
||||
--> $DIR/new_without_default.rs:176:5
|
||||
|
|
||||
LL | / pub fn new() -> Self {
|
||||
LL | | NewNotEqualToDerive { foo: 1 }
|
||||
@ -68,7 +68,7 @@ LL + }
|
||||
|
|
||||
|
||||
error: you should consider adding a `Default` implementation for `FooGenerics<T>`
|
||||
--> $DIR/new_without_default.rs:185:5
|
||||
--> $DIR/new_without_default.rs:184:5
|
||||
|
|
||||
LL | / pub fn new() -> Self {
|
||||
LL | | Self(Default::default())
|
||||
@ -85,7 +85,7 @@ LL + }
|
||||
|
|
||||
|
||||
error: you should consider adding a `Default` implementation for `BarGenerics<T>`
|
||||
--> $DIR/new_without_default.rs:192:5
|
||||
--> $DIR/new_without_default.rs:191:5
|
||||
|
|
||||
LL | / pub fn new() -> Self {
|
||||
LL | | Self(Default::default())
|
||||
@ -102,7 +102,7 @@ LL + }
|
||||
|
|
||||
|
||||
error: you should consider adding a `Default` implementation for `Foo<T>`
|
||||
--> $DIR/new_without_default.rs:203:9
|
||||
--> $DIR/new_without_default.rs:202:9
|
||||
|
|
||||
LL | / pub fn new() -> Self {
|
||||
LL | | todo!()
|
||||
|
Loading…
Reference in New Issue
Block a user