mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
c79fcfcca8
This avoids having to add several unhelpful annotations when enabling diagnostic checks for `cpass` and `rpass` revisions.
11 lines
252 B
Rust
11 lines
252 B
Rust
//@ revisions:rpass1 rpass2
|
|
//@ ignore-backends: gcc
|
|
|
|
#![cfg_attr(rpass2, warn(dead_code))]
|
|
|
|
pub static mut BAA: *const i8 = unsafe { &raw const BOO as *const i8 };
|
|
|
|
pub static mut BOO: *const i8 = unsafe { &raw const BAA as *const i8 };
|
|
|
|
fn main() {}
|