2020-09-05 19:30:12 +02:00
|
|
|
error[E0277]: the trait bound `NonClonable: Clone` is not satisfied
|
2021-11-23 09:44:59 +01:00
|
|
|
--> ui_tests/non_clonable_second.rs:11:27
|
|
|
|
|
|
2022-03-18 10:11:52 +01:00
|
|
|
10 | #[export_fn]
|
|
|
|
| ------------ in this procedural macro expansion
|
2021-11-23 09:44:59 +01:00
|
|
|
11 | pub fn test_fn(a: u32, b: NonClonable) -> bool {
|
|
|
|
| ^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable`
|
|
|
|
|
|
|
|
|
note: required by a bound in `rhai::Dynamic::cast`
|
|
|
|
--> $WORKSPACE/src/types/dynamic.rs
|
|
|
|
|
|
|
|
|
| pub fn cast<T: Any + Clone>(self) -> T {
|
|
|
|
| ^^^^^ required by this bound in `rhai::Dynamic::cast`
|
2022-03-18 10:11:52 +01:00
|
|
|
= note: this error originates in the attribute macro `export_fn` (in Nightly builds, run with -Z macro-backtrace for more info)
|