rust/tests/ui/deprecation/atomic_initializers.fixed

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
243 B
Rust
Raw Normal View History

2019-01-30 10:47:36 -06:00
// run-rustfix
// 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 constant
2019-01-30 10:47:36 -06:00
fn main() {}