]> git.lizzy.rs Git - rust.git/blob - src/test/ui/intrinsics/unchecked_math_unsafe.mir.stderr
Merge commit '4c41a222ca5d1325fb4b6709395bd06e766cc042' into clippyup
[rust.git] / src / test / ui / intrinsics / unchecked_math_unsafe.mir.stderr
1 error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
2   --> $DIR/unchecked_math_unsafe.rs:8:15
3    |
4 LL |     let add = std::intrinsics::unchecked_add(x, y);
5    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
6    |
7    = note: consult the function's documentation for information on how to avoid undefined behavior
8
9 error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
10   --> $DIR/unchecked_math_unsafe.rs:9:15
11    |
12 LL |     let sub = std::intrinsics::unchecked_sub(x, y);
13    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
14    |
15    = note: consult the function's documentation for information on how to avoid undefined behavior
16
17 error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
18   --> $DIR/unchecked_math_unsafe.rs:10:15
19    |
20 LL |     let mul = std::intrinsics::unchecked_mul(x, y);
21    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
22    |
23    = note: consult the function's documentation for information on how to avoid undefined behavior
24
25 error: aborting due to 3 previous errors
26
27 For more information about this error, try `rustc --explain E0133`.