]> git.lizzy.rs Git - rust.git/blob - src/test/ui/raw-ref-op/feature-raw-ref-op.rs
Sync rust-lang/portable-simd@5f49d4c8435a25d804b2f375e949cb25479f5be9
[rust.git] / src / test / ui / raw-ref-op / feature-raw-ref-op.rs
1 // gate-test-raw_ref_op
2
3 macro_rules! is_expr {
4     ($e:expr) => {}
5 }
6
7 is_expr!(&raw const a);         //~ ERROR raw address of syntax is experimental
8 is_expr!(&raw mut a);           //~ ERROR raw address of syntax is experimental
9
10 #[cfg(FALSE)]
11 fn cfgd_out() {
12     let mut a = 0;
13     &raw const a;               //~ ERROR raw address of syntax is experimental
14     &raw mut a;                 //~ ERROR raw address of syntax is experimental
15 }
16
17 fn main() {
18     let mut y = 123;
19     let x = &raw const y;       //~ ERROR raw address of syntax is experimental
20     let x = &raw mut y;         //~ ERROR raw address of syntax is experimental
21 }