summaryrefslogtreecommitdiffstats
path: root/tests/ui/deprecation/atomic_initializers.rs
blob: 1dcfd36d7d57593e1c1698956aa946162c0434a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-rustfix
// check-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 constant

fn main() {}