19 lines
822 B
Plaintext
19 lines
822 B
Plaintext
error[E0277]: the trait bound `NonClonable: Clone` is not satisfied
|
|
--> ui_tests/rhai_fn_non_clonable_return.rs:11:31
|
|
|
|
|
10 | #[export_fn]
|
|
| ------------ in this procedural macro expansion
|
|
11 | pub fn test_fn(input: f32) -> NonClonable {
|
|
| ^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable`
|
|
|
|
|
note: required by a bound in `rhai::Dynamic::from`
|
|
--> $WORKSPACE/src/types/dynamic.rs
|
|
|
|
|
| pub fn from<T: Variant + Clone>(value: T) -> Self {
|
|
| ^^^^^ required by this bound in `Dynamic::from`
|
|
= note: this error originates in the attribute macro `export_fn` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
help: consider annotating `NonClonable` with `#[derive(Clone)]`
|
|
|
|
|
3 | #[derive(Clone)]
|
|
|
|