mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
10 lines
277 B
Rust
10 lines
277 B
Rust
//@ compile-flags: --crate-type lib
|
|
#![deny(single_use_lifetime)]
|
|
//~^ WARNING renamed
|
|
//~| NOTE `#[warn(renamed_and_removed_lints)]` on by default
|
|
//~| NOTE defined here
|
|
fn _foo<'a>(_x: &'a u32) {}
|
|
//~^ ERROR only used once
|
|
//~| NOTE this lifetime
|
|
//~| NOTE is used only here
|