rhai/codegen/ui_tests/return_shared_ref.stderr

14 lines
792 B
Plaintext
Raw Normal View History

2021-10-20 09:34:21 +02:00
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-13fbbdaa684db49e.rmeta'
WARN rustc_metadata::locator no metadata found: failed to mmap rmeta metadata: '\\?\$WORKSPACE/target\tests\target\x86_64-pc-windows-msvc\debug\deps\librhai_codegen_tests-1b00becb051b9b4f.rmeta'
2020-10-15 08:06:54 +02:00
error: Rhai functions cannot return references
2021-10-12 14:57:47 +02:00
--> ui_tests/return_shared_ref.rs:12:33
2020-08-01 18:52:26 +02:00
|
2020-08-03 02:27:19 +02:00
12 | pub fn test_fn(input: Clonable) -> &'static 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_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