]> git.proxmox.com Git - rustc.git/blame - tests/ui/traits/safety-fn-body.mir.stderr
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / ui / traits / safety-fn-body.mir.stderr
CommitLineData
8faf50e0 1error[E0133]: dereference of raw pointer is unsafe and requires unsafe function or block
17df50a5 2 --> $DIR/safety-fn-body.rs:14:9
ff7c6d11 3 |
0531ce1d 4LL | *self += 1;
ff7c6d11 5 | ^^^^^^^^^^ dereference of raw pointer
8faf50e0 6 |
17df50a5 7 = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
ff7c6d11 8
4b012472 9error: aborting due to 1 previous error
ff7c6d11 10
0531ce1d 11For more information about this error, try `rustc --explain E0133`.