Skip wrapping if function returns Dynamicc.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
error: cannot return a reference to Rhai
|
||||
error: Rhai functions cannot return references
|
||||
--> $DIR/return_mut_ref.rs:12:38
|
||||
|
|
||||
12 | pub fn test_fn(input: &mut Clonable) -> &mut bool {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
error: cannot return a pointer to Rhai
|
||||
error: Rhai functions cannot return pointers
|
||||
--> $DIR/return_pointer.rs:12:33
|
||||
|
|
||||
12 | pub fn test_fn(input: Clonable) -> *const str {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
error: cannot return a reference to Rhai
|
||||
error: Rhai functions cannot return pointers
|
||||
--> $DIR/return_shared_ref.rs:12:33
|
||||
|
|
||||
12 | pub fn test_fn(input: Clonable) -> &'static str {
|
||||
|
Reference in New Issue
Block a user