]> git.lizzy.rs Git - rust.git/blob - tests/pretty/raw-address-of.rs
Auto merge of #107529 - Zoxc:inline-tweak-profile, r=cjgillot
[rust.git] / tests / pretty / raw-address-of.rs
1 // pp-exact
2 #![feature(raw_ref_op)]
3
4 const C_PTR: () = { let a = 1; &raw const a; };
5 static S_PTR: () = { let b = false; &raw const b; };
6
7 fn main() {
8     let x = 123;
9     let mut y = 345;
10     let c_p = &raw const x;
11     let parens = unsafe { *(&raw mut (y)) };
12 }