6d86969260
conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
14 lines
224 B
Rust
14 lines
224 B
Rust
use std;
|
|
|
|
fn main() {
|
|
unsafe fn f(&&v: *const int) {
|
|
*v = 1 //~ ERROR assigning to dereference of const * pointer
|
|
}
|
|
|
|
unsafe {
|
|
let a = 0;
|
|
let v = ptr::mut_addr_of(a);
|
|
f(v);
|
|
}
|
|
}
|