]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-28776.thir.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-28776.thir.stderr
CommitLineData
04454e1e 1error[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 4LL | (&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
9error: aborting due to previous error
10
0531ce1d 11For more information about this error, try `rustc --explain E0133`.