mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +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() {
|
|
}
|