]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/renamed-lints-still-apply.rs
Rollup merge of #106889 - scottmcm:windows-mut, r=cuviper
[rust.git] / tests / 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