mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
13 lines
186 B
Rust
13 lines
186 B
Rust
//@check-pass
|
|
|
|
const A: () = { let mut x = 2; &raw mut x; };
|
|
|
|
static B: () = { let mut x = 2; &raw mut x; };
|
|
|
|
const fn foo() {
|
|
let mut x = 0;
|
|
let y = &raw mut x;
|
|
}
|
|
|
|
fn main() {}
|