rust/src/test/ui/deprecation/atomic_initializers.fixed
Andy Russell 0b32008642
report kind of deprecated item in message
This is important for fields, which are incorrectly referred to as
"items".
2020-07-26 13:58:31 -04:00

12 lines
243 B
Rust

// run-rustfix
// check-pass
#[allow(deprecated, unused_imports)]
use std::sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT};
#[allow(dead_code)]
static FOO: AtomicIsize = AtomicIsize::new(0);
//~^ WARN use of deprecated constant
fn main() {}