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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
252 B
Rust
Raw Normal View History

2019-01-26 16:14:49 +00:00
use std::sync::atomic::AtomicUsize;
2016-08-23 13:35:59 +00:00
2019-01-26 16:14:49 +00: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 13:35:59 +00:00
fn main() {
}