summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0492.rs
blob: b1824941adf0000065c3c01279b241a1bc8da217 (plain)
1
2
3
4
5
6
7
use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT};

const A: AtomicUsize = ATOMIC_USIZE_INIT;
static B: &'static AtomicUsize = &A; //~ ERROR E0492

fn main() {
}