E4070#
Unknown intrinsic. This intrinsic is not known to the MoonBit compiler.
Note all intrinsic is not intended for usage outside of moonbitlang/core
and
is subject to change without notice, and we highly recommend against using
them.
Erroneous example#
pub fn my_abort(message : String) -> Unit = "%abort"
// Error: Unknown intrinsic: %abort
fn main {
my_abort("Abort!")
}
Suggestion#
You may probably want to use the abort
function from the moonbitlang/core
:
fn main {
abort("Abort!")
}
If you really need to use the intrinsic, you can check the source code of
moonbitlang/core
for further usage of the corresponding intrinsic.