]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[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 | 4 | LL | *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 | 9 | error: aborting due to 1 previous error |
ff7c6d11 | 10 | |
0531ce1d | 11 | For more information about this error, try `rustc --explain E0133`. |