mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
31 lines
798 B
Plaintext
31 lines
798 B
Plaintext
error: lifetime parameter `'a` never used
|
|
--> $DIR/zero-uses-in-fn.rs:8:14
|
|
|
|
|
LL | fn september<'a>() {}
|
|
| -^^- help: elide the unused lifetime
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/zero-uses-in-fn.rs:5:9
|
|
|
|
|
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
|
|
|