E4070

E4070#

Unknown intrinsic. This intrinsic is not known to the MoonBit compiler.

Note all intrinsic is not intended for external use and is subject to change without notice, and we highly recommend against using them.

错误示例#

pub fn my_abort(message : String) -> Unit = "%abort"
// Error: Unknown intrinsic: %abort

fn main {
  my_abort("Abort!")
}

建议#

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.