fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0133]: call to unsafe function `unchecked_add` is unsafe and requires unsafe function or block 2 --> $DIR/unchecked_math_unsafe.rs:8: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 `unchecked_sub` is unsafe and requires unsafe function or block 10 --> $DIR/unchecked_math_unsafe.rs:9: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 `unchecked_mul` is unsafe and requires unsafe function or block 18 --> $DIR/unchecked_math_unsafe.rs:10: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`.