From 29806831539cd3b1f1680d5e2132d1cd81120fc9 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Thu, 2 Sep 2021 22:44:33 +0800 Subject: [PATCH] Fix test output. --- codegen/ui_tests/rhai_fn_non_clonable_return.stderr | 7 ++++--- codegen/ui_tests/rhai_mod_non_clonable_return.stderr | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/codegen/ui_tests/rhai_fn_non_clonable_return.stderr b/codegen/ui_tests/rhai_fn_non_clonable_return.stderr index 28d43e99..d614b6bc 100644 --- a/codegen/ui_tests/rhai_fn_non_clonable_return.stderr +++ b/codegen/ui_tests/rhai_fn_non_clonable_return.stderr @@ -4,7 +4,8 @@ error[E0277]: the trait bound `NonClonable: Clone` is not satisfied 11 | pub fn test_fn(input: f32) -> NonClonable { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable` | - ::: $WORKSPACE/src/dynamic.rs +note: required by a bound in `rhai::Dynamic::from` + --> $DIR/dynamic.rs:1043:30 | - | pub fn from(mut value: T) -> Self { - | ----- required by this bound in `rhai::Dynamic::from` +1043 | pub fn from(mut value: T) -> Self { + | ^^^^^ required by this bound in `rhai::Dynamic::from` diff --git a/codegen/ui_tests/rhai_mod_non_clonable_return.stderr b/codegen/ui_tests/rhai_mod_non_clonable_return.stderr index 73ba7569..a660003d 100644 --- a/codegen/ui_tests/rhai_mod_non_clonable_return.stderr +++ b/codegen/ui_tests/rhai_mod_non_clonable_return.stderr @@ -4,7 +4,8 @@ error[E0277]: the trait bound `NonClonable: Clone` is not satisfied 12 | pub fn test_fn(input: f32) -> NonClonable { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable` | - ::: $WORKSPACE/src/dynamic.rs +note: required by a bound in `rhai::Dynamic::from` + --> $DIR/dynamic.rs:1043:30 | - | pub fn from(mut value: T) -> Self { - | ----- required by this bound in `rhai::Dynamic::from` +1043 | pub fn from(mut value: T) -> Self { + | ^^^^^ required by this bound in `rhai::Dynamic::from`