mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
11 lines
252 B
Rust
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() {
|
|
}
|