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
241 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 = ATOMIC_ISIZE_INIT;
//~^ WARN use of deprecated constant
2019-01-30 10:47:36 -06:00
fn main() {}