diff --git a/codegen/ui_tests/non_clonable.stderr b/codegen/ui_tests/non_clonable.stderr index 83d12899..a8a642fb 100644 --- a/codegen/ui_tests/non_clonable.stderr +++ b/codegen/ui_tests/non_clonable.stderr @@ -1,14 +1,14 @@ error[E0277]: the trait bound `NonClonable: Clone` is not satisfied - --> ui_tests/non_clonable.rs:11:23 - | -11 | pub fn test_fn(input: NonClonable) -> bool { - | ^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable` - | + --> ui_tests/non_clonable.rs:11:23 + | +11 | pub fn test_fn(input: 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(self) -> T { - | ^^^^^ required by this bound in `rhai::Dynamic::cast` + --> $WORKSPACE/src/types/dynamic.rs + | + | pub fn cast(self) -> T { + | ^^^^^ required by this bound in `Dynamic::cast` 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 241d41d6..f764e8a8 100644 --- a/codegen/ui_tests/non_clonable_second.stderr +++ b/codegen/ui_tests/non_clonable_second.stderr @@ -1,14 +1,14 @@ error[E0277]: the trait bound `NonClonable: Clone` is not satisfied - --> 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` - | + --> 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` + | note: required by a bound in `rhai::Dynamic::cast` - --> $WORKSPACE/src/types/dynamic.rs - | - | pub fn cast(self) -> T { - | ^^^^^ required by this bound in `rhai::Dynamic::cast` + --> $WORKSPACE/src/types/dynamic.rs + | + | pub fn cast(self) -> T { + | ^^^^^ required by this bound in `Dynamic::cast` 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 78260a4a..e4a8897e 100644 --- a/codegen/ui_tests/rhai_fn_non_clonable_return.stderr +++ b/codegen/ui_tests/rhai_fn_non_clonable_return.stderr @@ -1,17 +1,17 @@ error[E0277]: the trait bound `NonClonable: Clone` is not satisfied - --> ui_tests/rhai_fn_non_clonable_return.rs:11:31 - | -10 | #[export_fn] - | ------------ in this procedural macro expansion -11 | pub fn test_fn(input: f32) -> NonClonable { - | ^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable` - | + --> ui_tests/rhai_fn_non_clonable_return.rs:11:31 + | +10 | #[export_fn] + | ------------ in this procedural macro expansion +11 | pub fn test_fn(input: f32) -> NonClonable { + | ^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable` + | note: required by a bound in `rhai::Dynamic::from` - --> $WORKSPACE/src/types/dynamic.rs - | - | 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) + --> $WORKSPACE/src/types/dynamic.rs + | + | pub fn from(value: T) -> Self { + | ^^^^^ required by this bound in `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 7e646bcd..185d1678 100644 --- a/codegen/ui_tests/rhai_mod_non_clonable_return.stderr +++ b/codegen/ui_tests/rhai_mod_non_clonable_return.stderr @@ -1,18 +1,18 @@ error[E0277]: the trait bound `NonClonable: Clone` is not satisfied - --> ui_tests/rhai_mod_non_clonable_return.rs:12:35 - | -10 | #[export_module] - | ---------------- in this procedural macro expansion -11 | pub mod test_mod { -12 | pub fn test_fn(input: f32) -> NonClonable { - | ^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable` - | + --> ui_tests/rhai_mod_non_clonable_return.rs:12:35 + | +10 | #[export_module] + | ---------------- in this procedural macro expansion +11 | pub mod test_mod { +12 | pub fn test_fn(input: f32) -> NonClonable { + | ^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable` + | note: required by a bound in `rhai::Dynamic::from` - --> $WORKSPACE/src/types/dynamic.rs - | - | 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) + --> $WORKSPACE/src/types/dynamic.rs + | + | pub fn from(value: T) -> Self { + | ^^^^^ required by this bound in `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)]