rhai/codegen/ui_tests/non_clonable_second.stderr

17 lines
626 B
Plaintext
Raw Normal View History

2020-09-05 19:30:12 +02:00
error[E0277]: the trait bound `NonClonable: Clone` is not satisfied
2023-03-15 01:27:02 +01:00
--> ui_tests/non_clonable_second.rs:11:27
|
11 | pub fn test_fn(a: u32, b: NonClonable) -> bool {
| ^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable`
|
2021-11-23 09:44:59 +01:00
note: required by a bound in `rhai::Dynamic::cast`
2023-03-15 01:27:02 +01:00
--> $WORKSPACE/src/types/dynamic.rs
|
| pub fn cast<T: Any + Clone>(self) -> T {
| ^^^^^ required by this bound in `Dynamic::cast`
2022-04-06 11:48:34 +02:00
help: consider annotating `NonClonable` with `#[derive(Clone)]`
|
2023-06-15 05:06:14 +02:00
3 + #[derive(Clone)]
4 | struct NonClonable {
2022-04-06 11:48:34 +02:00
|