2020-09-08 23:04:04 +02:00
|
|
|
error[E0277]: the trait bound `NonClonable: Clone` is not satisfied
|
|
|
|
--> $DIR/rhai_fn_non_clonable_return.rs:11:8
|
|
|
|
|
|
|
|
|
11 | pub fn test_fn(input: f32) -> NonClonable {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable`
|
|
|
|
|
|
2020-10-28 15:30:35 +01:00
|
|
|
::: $WORKSPACE/src/dynamic.rs
|
2020-09-08 23:04:04 +02:00
|
|
|
|
|
|
|
|
| pub fn from<T: Variant + Clone>(value: T) -> Self {
|
|
|
|
| ----- required by this bound in `rhai::Dynamic::from`
|