rust/tests/ui/error-codes/E0492.rs
2023-01-11 09:32:08 +00:00

11 lines
252 B
Rust

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