E4070#
Unknown intrinsic. This intrinsic is not known to the MoonBit compiler.
Intrinsics are not intended for usage outside of moonbitlang/core. They are
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
Suggestion#
You probably want to use the abort function from moonbitlang/core:
///|
pub fn my_abort(message : String) -> Unit {
abort(message)
}
If you really need to use the intrinsic, you can check the source code of
moonbitlang/core for further usage of the corresponding intrinsic.