2020-10-15 07:28:22 +02:00
|
|
|
error: Rhai functions cannot return pointers
|
2021-10-12 14:57:47 +02:00
|
|
|
--> ui_tests/return_pointer.rs:12:33
|
2020-08-01 18:52:26 +02:00
|
|
|
|
|
|
|
|
12 | pub fn test_fn(input: Clonable) -> *const str {
|
2021-10-20 09:34:21 +02:00
|
|
|
| ^^^^^^^^^^^^^
|
2020-08-01 18:52:26 +02:00
|
|
|
|
|
|
|
error[E0425]: cannot find function `test_fn` in this scope
|
2021-10-12 14:57:47 +02:00
|
|
|
--> ui_tests/return_pointer.rs:24:19
|
2020-08-01 18:52:26 +02:00
|
|
|
|
|
2020-08-03 02:27:19 +02:00
|
|
|
24 | let ptr = test_fn(n);
|
|
|
|
| ^^^^^^^ not found in this scope
|