diff --git a/codegen/ui_tests/non_clonable.stderr b/codegen/ui_tests/non_clonable.stderr index 8a8fc1f1..5e50c242 100644 --- a/codegen/ui_tests/non_clonable.stderr +++ b/codegen/ui_tests/non_clonable.stderr @@ -12,3 +12,7 @@ note: required by a bound in `rhai::Dynamic::cast` | pub fn cast(self) -> T { | ^^^^^ required by this bound in `rhai::Dynamic::cast` = 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)] + | diff --git a/codegen/ui_tests/non_clonable_second.stderr b/codegen/ui_tests/non_clonable_second.stderr index 413c3a70..a4c40461 100644 --- a/codegen/ui_tests/non_clonable_second.stderr +++ b/codegen/ui_tests/non_clonable_second.stderr @@ -12,3 +12,7 @@ note: required by a bound in `rhai::Dynamic::cast` | pub fn cast(self) -> T { | ^^^^^ required by this bound in `rhai::Dynamic::cast` = 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)] + | diff --git a/codegen/ui_tests/rhai_fn_non_clonable_return.stderr b/codegen/ui_tests/rhai_fn_non_clonable_return.stderr index efcd40de..78260a4a 100644 --- a/codegen/ui_tests/rhai_fn_non_clonable_return.stderr +++ b/codegen/ui_tests/rhai_fn_non_clonable_return.stderr @@ -12,3 +12,7 @@ note: required by a bound in `rhai::Dynamic::from` | pub fn from(value: T) -> Self { | ^^^^^ required by this bound in `rhai::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)] + | diff --git a/codegen/ui_tests/rhai_mod_non_clonable_return.stderr b/codegen/ui_tests/rhai_mod_non_clonable_return.stderr index d96fe2c8..7e646bcd 100644 --- a/codegen/ui_tests/rhai_mod_non_clonable_return.stderr +++ b/codegen/ui_tests/rhai_mod_non_clonable_return.stderr @@ -13,3 +13,7 @@ note: required by a bound in `rhai::Dynamic::from` | pub fn from(value: T) -> Self { | ^^^^^ required by this bound in `rhai::Dynamic::from` = note: this error originates in the attribute macro `export_module` (in Nightly builds, run with -Z macro-backtrace for more info) +help: consider annotating `NonClonable` with `#[derive(Clone)]` + | +3 | #[derive(Clone)] + |