rust/tests/ui/single-use-lifetime/issue-117965.stderr

17 lines
436 B
Plaintext
Raw Normal View History

2024-01-19 15:22:52 -06:00
error: lifetime parameter `'b` only used once
--> $DIR/issue-117965.rs:9:16
|
LL | pub fn get<'b: 'a>(&'b self) -> &'a str {
| ^^ -- ...is used only here
| |
| this lifetime...
|
note: the lint level is defined here
--> $DIR/issue-117965.rs:1:9
|
LL | #![deny(single_use_lifetimes)]
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to 1 previous error