rust/src/test/ui/deprecation/atomic_initializers.fixed

12 lines
276 B
Rust
Raw Normal View History

2019-01-30 10:47:36 -06:00
// run-rustfix
// build-pass (FIXME(62277): could be check-pass?)
2019-01-30 10:47:36 -06:00
#[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 item
fn main() {}