rust/tests/ui/single-use-lifetime/zero-uses-in-fn.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
798 B
Plaintext
Raw Normal View History

error: lifetime parameter `'a` never used
--> $DIR/zero-uses-in-fn.rs:8:14
|
LL | fn september<'a>() {}
| -^^- help: elide the unused lifetime
|
2020-01-22 17:57:38 -06:00
note: the lint level is defined here
--> $DIR/zero-uses-in-fn.rs:5:9
|
2018-05-18 17:13:53 -05:00
LL | #![deny(unused_lifetimes)]
| ^^^^^^^^^^^^^^^^
error: lifetime parameter `'a` never used
--> $DIR/zero-uses-in-fn.rs:12:12
|
LL | fn october<'a, 'b, T>(s: &'b T) -> &'b T {
| ^^--
| |
| help: elide the unused lifetime
error: lifetime parameter `'b` never used
--> $DIR/zero-uses-in-fn.rs:18:17
|
LL | fn november<'a, 'b>(s: &'a str) -> &'a str {
| --^^
| |
| help: elide the unused lifetime
error: aborting due to 3 previous errors