2018-05-03 17:58:06 -05:00
|
|
|
error: lifetime parameter `'a` never used
|
2018-09-29 23:25:41 -05:00
|
|
|
--> $DIR/zero-uses-in-impl.rs:8:6
|
2018-05-03 17:58:06 -05:00
|
|
|
|
|
2018-09-29 23:25:41 -05:00
|
|
|
LL | impl<'a> Foo {} //~ ERROR `'a` never used
|
2018-10-28 01:40:56 -05:00
|
|
|
| -^^- help: elide the unused lifetime
|
2018-05-03 17:58:06 -05:00
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-09-29 23:25:41 -05:00
|
|
|
--> $DIR/zero-uses-in-impl.rs:3:9
|
2018-05-03 17:58:06 -05:00
|
|
|
|
|
2018-05-18 17:13:53 -05:00
|
|
|
LL | #![deny(unused_lifetimes)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2018-05-03 17:58:06 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|