blob: 2c735fcc9f91c1358ddac2badc6924953b6b6e02 (
plain)
1
2
3
4
5
6
7
8
9
10
|
use std::sync::atomic::AtomicUsize;
const A: AtomicUsize = AtomicUsize::new(0);
const B: &'static AtomicUsize = &A; //~ ERROR E0492
static C: &'static AtomicUsize = &A; //~ ERROR E0492
const NONE: &'static Option<AtomicUsize> = &None;
fn main() {
}
|