mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +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() {
|
|
}
|