rust/src/test/ui/async-await/unused-lifetime.stderr

29 lines
819 B
Plaintext
Raw Normal View History

error: lifetime parameter `'a` never used
--> $DIR/unused-lifetime.rs:31:23
|
LL | fn wrong_without_args<'a>() {}
| -^^- help: elide the unused lifetime
|
2020-01-22 17:57:38 -06:00
note: the lint level is defined here
--> $DIR/unused-lifetime.rs:5:9
|
LL | #![deny(unused_lifetimes)]
| ^^^^^^^^^^^^^^^^
error: lifetime parameter `'a` never used
--> $DIR/unused-lifetime.rs:33:21
|
LL | fn wrong_1_lifetime<'a>(_: &i32) {}
| -^^- help: elide the unused lifetime
error: lifetime parameter `'b` never used
--> $DIR/unused-lifetime.rs:35:26
|
LL | fn wrong_2_lifetimes<'a, 'b>(_: &'a i32, _: &i32) {}
| --^^
| |
| help: elide the unused lifetime
error: aborting due to 3 previous errors