rust/tests/ui/deprecation/atomic_initializers.rs

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-31 00:47:36 +08:00
//@ run-rustfix
//@ check-pass
2019-01-31 00:47:36 +08:00
#[allow(deprecated, unused_imports)]
use std::sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT};
#[allow(dead_code)]
static FOO: AtomicIsize = ATOMIC_ISIZE_INIT;
//~^ WARN use of deprecated constant
2019-01-31 00:47:36 +08:00
fn main() {}