rhai/codegen/ui_tests/rhai_mod_non_clonable_return.stderr

15 lines
689 B
Plaintext
Raw Normal View History

2020-09-08 23:04:04 +02:00
error[E0277]: the trait bound `NonClonable: Clone` is not satisfied
2021-06-07 05:54:10 +02:00
--> $DIR/rhai_mod_non_clonable_return.rs:12:12
|
12 | pub fn test_fn(input: f32) -> NonClonable {
2021-09-19 16:08:29 +02:00
| ^^^^^^^^^^^^^^^^^^^^^^^-----------
| | |
| | required by a bound introduced by this call
| the trait `Clone` is not implemented for `NonClonable`
2021-06-07 05:54:10 +02:00
|
2021-08-21 05:51:45 +02:00
note: required by a bound in `rhai::Dynamic::from`
2021-09-24 12:42:57 +02:00
--> $DIR/dynamic.rs:1122:30
2021-06-07 05:54:10 +02:00
|
2021-09-24 12:42:57 +02:00
1122 | pub fn from<T: Variant + Clone>(mut value: T) -> Self {
2021-08-21 05:51:45 +02:00
| ^^^^^ required by this bound in `rhai::Dynamic::from`