]> git.lizzy.rs Git - rust.git/blob - tests/ui/single-use-lifetime/one-use-in-inherent-impl-header.stderr
Auto merge of #106981 - joboet:std_remove_box_syntax, r=thomcc
[rust.git] / tests / ui / single-use-lifetime / one-use-in-inherent-impl-header.stderr
1 error: lifetime parameter `'f` only used once
2   --> $DIR/one-use-in-inherent-impl-header.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/one-use-in-inherent-impl-header.rs:1:9
11    |
12 LL | #![deny(single_use_lifetimes)]
13    |         ^^^^^^^^^^^^^^^^^^^^
14 help: elide the single-use lifetime
15    |
16 LL - impl<'f> Foo<'f> {
17 LL + impl Foo<'_> {
18    |
19
20 error: aborting due to previous error
21