summaryrefslogtreecommitdiffstats
path: root/tests/ui/deprecation/atomic_initializers.fixed
blob: 4fb0aeeb573e0d64354eae92f55708a631b4c7d8 (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 = AtomicIsize::new(0);
//~^ WARN use of deprecated constant

fn main() {}