12 lines
390 B
Plaintext
12 lines
390 B
Plaintext
|
error: cannot return a reference to Rhai
|
||
|
--> $DIR/return_shared_ref.rs:12:33
|
||
|
|
|
||
|
12 | pub fn test_fn(input: Clonable) -> & 'static str {
|
||
|
| ^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error[E0425]: cannot find function `test_fn` in this scope
|
||
|
--> $DIR/return_shared_ref.rs:18:20
|
||
|
|
|
||
|
18 | println!("{}", test_fn(n));
|
||
|
| ^^^^^^^ not found in this scope
|