2022-02-07 15:58:30 -06:00
|
|
|
warning: unnecessary lifetime parameter `'a`
|
2023-02-21 19:41:48 -06:00
|
|
|
--> $DIR/regions-static-bound-rpass.rs:6:11
|
2022-02-07 15:58:30 -06:00
|
|
|
|
|
2022-03-14 09:56:37 -05:00
|
|
|
LL | where 'a: 'static { t }
|
|
|
|
| ^^
|
2022-02-07 15:58:30 -06:00
|
|
|
|
|
|
|
|
= help: you can use the `'static` lifetime directly, in place of `'a`
|
2023-02-21 19:41:48 -06:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/regions-static-bound-rpass.rs:3:9
|
|
|
|
|
|
|
|
|
LL | #![warn(unused_lifetimes)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-02-07 15:58:30 -06:00
|
|
|
|
|
|
|
warning: unnecessary lifetime parameter `'a`
|
2023-02-21 19:41:48 -06:00
|
|
|
--> $DIR/regions-static-bound-rpass.rs:10:11
|
2022-02-07 15:58:30 -06:00
|
|
|
|
|
2022-03-14 09:56:37 -05:00
|
|
|
LL | where 'a: 'static { t }
|
|
|
|
| ^^
|
2022-02-07 15:58:30 -06:00
|
|
|
|
|
|
|
|
= help: you can use the `'static` lifetime directly, in place of `'a`
|
|
|
|
|
|
|
|
warning: unnecessary lifetime parameter `'b`
|
2023-02-21 19:41:48 -06:00
|
|
|
--> $DIR/regions-static-bound-rpass.rs:14:19
|
2022-02-07 15:58:30 -06:00
|
|
|
|
|
2022-03-14 09:56:37 -05:00
|
|
|
LL | where 'a: 'b, 'b: 'static { t }
|
|
|
|
| ^^
|
2022-02-07 15:58:30 -06:00
|
|
|
|
|
|
|
|
= help: you can use the `'static` lifetime directly, in place of `'b`
|
|
|
|
|
|
|
|
warning: 3 warnings emitted
|
|
|
|
|