summary refs log tree commit diff
path: root/src/test/ui/deprecation/atomic_initializers.rs
blob: 00c5f7b0b1257dcfc28001fc07387d6ee03895de (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-rustfix
// build-pass (FIXME(62277): could be 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 item

fn main() {}