]> git.lizzy.rs Git - rust.git/blob - src/test/ui/single-use-lifetime/two-uses-in-inherent-method-argument-and-return.stderr
Rollup merge of #82259 - osa1:issue82156, r=petrochenkov
[rust.git] / src / test / ui / single-use-lifetime / two-uses-in-inherent-method-argument-and-return.stderr
1 error: lifetime parameter `'f` only used once
2   --> $DIR/two-uses-in-inherent-method-argument-and-return.rs:12:6
3    |
4 LL | impl<'f> Foo<'f> {
5    |      ^^      -- ...is used only here
6    |      |
7    |      this lifetime...
8    |
9 note: the lint level is defined here
10   --> $DIR/two-uses-in-inherent-method-argument-and-return.rs:4:9
11    |
12 LL | #![deny(single_use_lifetimes)]
13    |         ^^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to previous error
16