16 lines
298 B
Rust
16 lines
298 B
Rust
const fn mutable_address_of_in_const() {
|
|
let mut a = 0;
|
|
let b = &raw mut a; //~ ERROR mutable pointer
|
|
}
|
|
|
|
struct X;
|
|
|
|
impl X {
|
|
const fn inherent_mutable_address_of_in_const() {
|
|
let mut a = 0;
|
|
let b = &raw mut a; //~ ERROR mutable pointer
|
|
}
|
|
}
|
|
|
|
fn main() {}
|