]> git.lizzy.rs Git - rust.git/blob - tests/ui/crashes/needless_lifetimes_impl_trait.stderr
Auto merge of #6298 - JohnTitor:fix-example, r=llogiq
[rust.git] / tests / ui / crashes / needless_lifetimes_impl_trait.stderr
1 error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
2   --> $DIR/needless_lifetimes_impl_trait.rs:15:5
3    |
4 LL |     fn baz<'a>(&'a self) -> impl Foo + 'a {
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/needless_lifetimes_impl_trait.rs:1:9
9    |
10 LL | #![deny(clippy::needless_lifetimes)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14