2020-08-01 18:52:26 +02:00
|
|
|
error: cannot return a reference to Rhai
|
|
|
|
--> $DIR/return_shared_ref.rs:12:33
|
|
|
|
|
|
2020-08-03 02:27:19 +02:00
|
|
|
12 | pub fn test_fn(input: Clonable) -> &'static str {
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2020-08-01 18:52:26 +02:00
|
|
|
|
|
|
|
error[E0425]: cannot find function `test_fn` in this scope
|
2020-08-03 02:27:19 +02:00
|
|
|
--> $DIR/return_shared_ref.rs:23:20
|
2020-08-01 18:52:26 +02:00
|
|
|
|
|
2020-08-03 02:27:19 +02:00
|
|
|
23 | println!("{}", test_fn(n));
|
2020-08-01 18:52:26 +02:00
|
|
|
| ^^^^^^^ not found in this scope
|