File: return_shared_ref.stderr

package info (click to toggle)
rust-rhai-codegen 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 888 kB
  • sloc: makefile: 2
file content (11 lines) | stat: -rw-r--r-- 399 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
error: Rhai functions cannot return references
  --> ui_tests/return_shared_ref.rs:13:33
   |
13 | pub fn test_fn(input: Clonable) -> &'static str {
   |                                 ^

error[E0425]: cannot find function `test_fn` in this scope
  --> ui_tests/return_shared_ref.rs:24:20
   |
24 |     println!("{}", test_fn(n));
   |                    ^^^^^^^ not found in this scope