rust/tests/ui/error-codes/E0492.rs

11 lines
252 B
Rust
Raw Normal View History

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);
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() {
}