]>
Commit | Line | Data |
---|---|---|
04454e1e | 1 | error[E0133]: call to unsafe function `std::ptr::write` is unsafe and requires unsafe function or block |
17df50a5 | 2 | --> $DIR/issue-28776.rs:7:5 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | (&ptr::write)(1 as *mut _, 42); |
ff7c6d11 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function |
8faf50e0 XL |
6 | | |
7 | = note: consult the function's documentation for information on how to avoid undefined behavior | |
ff7c6d11 XL |
8 | |
9 | error: aborting due to previous error | |
10 | ||
0531ce1d | 11 | For more information about this error, try `rustc --explain E0133`. |