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