2019-01-26 10:14:49 -06:00
|
|
|
use std::sync::atomic::AtomicUsize;
|
2016-08-23 08:35:59 -05:00
|
|
|
|
2019-01-26 10:14:49 -06:00
|
|
|
const A: AtomicUsize = AtomicUsize::new(0);
|
2020-12-27 11:33:56 -06:00
|
|
|
const B: &'static AtomicUsize = &A; //~ ERROR E0492
|
|
|
|
static C: &'static AtomicUsize = &A; //~ ERROR E0492
|
|
|
|
|
|
|
|
const NONE: &'static Option<AtomicUsize> = &None;
|
2016-08-23 08:35:59 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|