]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/renamed-lints-still-apply.stderr
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / renamed-lints-still-apply.stderr
1 warning: lint `single_use_lifetime` has been renamed to `single_use_lifetimes`
2   --> $DIR/renamed-lints-still-apply.rs:2:9
3    |
4 LL | #![deny(single_use_lifetime)]
5    |         ^^^^^^^^^^^^^^^^^^^ help: use the new name: `single_use_lifetimes`
6    |
7    = note: `#[warn(renamed_and_removed_lints)]` on by default
8
9 error: lifetime parameter `'a` only used once
10   --> $DIR/renamed-lints-still-apply.rs:6:9
11    |
12 LL | fn _foo<'a>(_x: &'a u32) {}
13    |         ^^       -- ...is used only here
14    |         |
15    |         this lifetime...
16    |
17 note: the lint level is defined here
18   --> $DIR/renamed-lints-still-apply.rs:2:9
19    |
20 LL | #![deny(single_use_lifetime)]
21    |         ^^^^^^^^^^^^^^^^^^^
22 help: elide the single-use lifetime
23    |
24 LL - fn _foo<'a>(_x: &'a u32) {}
25 LL + fn _foo(_x: &u32) {}
26    |
27
28 error: aborting due to previous error; 1 warning emitted
29