rust/tests/ui/crashes/needless_lifetimes_impl_trait.stderr

15 lines
427 B
Plaintext
Raw Normal View History

2022-10-28 12:18:07 -05:00
error: the following explicit lifetimes could be elided: 'a
2020-09-29 16:06:08 -05:00
--> $DIR/needless_lifetimes_impl_trait.rs:15:5
|
LL | fn baz<'a>(&'a self) -> impl Foo + 'a {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: the lint level is defined here
2020-09-29 16:06:08 -05:00
--> $DIR/needless_lifetimes_impl_trait.rs:1:9
|
LL | #![deny(clippy::needless_lifetimes)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error