about summary refs log tree commit diff
path: root/src/test/ui/deprecation/atomic_initializers.rs
blob: b9e25e817bce463d2a2ab88a0c7bf64a362a6169 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-rustfix
// compile-pass

#[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 item

fn main() {}