]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/renamed-lints-still-apply.rs
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / lint / renamed-lints-still-apply.rs
1 // compile-flags: --crate-type lib
2 #![deny(single_use_lifetime)]
3 //~^ WARNING renamed
4 //~| NOTE `#[warn(renamed_and_removed_lints)]` on by default
5 //~| NOTE defined here
6 fn _foo<'a>(_x: &'a u32) {}
7 //~^ ERROR only used once
8 //~| NOTE this lifetime
9 //~| NOTE is used only here