fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error[E0133]: call to unsafe function is unsafe and requires unsafe function or block 2 --> $DIR/unchecked_math_unsafe.rs:5:15 3 | 4LL | 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 9error[E0133]: call to unsafe function is unsafe and requires unsafe function or block 10 --> $DIR/unchecked_math_unsafe.rs:6:15 11 | 12LL | 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 17error[E0133]: call to unsafe function is unsafe and requires unsafe function or block 18 --> $DIR/unchecked_math_unsafe.rs:7:15 19 | 20LL | 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 25error: aborting due to 3 previous errors 26 27For more information about this error, try `rustc --explain E0133`.