2020-08-24 00:22:29 +02:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/export_fn_raw_return.rs:10:8
|
|
|
|
|
|
|
|
|
9 | #[export_fn(return_raw)]
|
2021-02-09 07:34:51 +01:00
|
|
|
| ------------------------ expected `Result<rhai::Dynamic, std::boxed::Box<rhai::EvalAltResult>>` because of return type
|
2020-08-24 00:22:29 +02:00
|
|
|
10 | pub fn test_fn(input: Point) -> bool {
|
2021-02-09 07:34:51 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Result`, found `bool`
|
2020-08-24 00:22:29 +02:00
|
|
|
|
|
2021-02-09 07:34:51 +01:00
|
|
|
= note: expected enum `Result<rhai::Dynamic, std::boxed::Box<rhai::EvalAltResult>>`
|
2020-08-24 00:22:29 +02:00
|
|
|
found type `bool`
|