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

12 lines
241 B
Rust
Raw Normal View History

2019-01-30 17:47:36 +01:00
// run-rustfix
// compile-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 item
fn main() {}