From 661d00bc94b04eb288f4b9d8b1bbbae18367ce0d Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sun, 19 Sep 2021 22:08:29 +0800 Subject: [PATCH] Fix test output. --- codegen/ui_tests/rhai_fn_non_clonable_return.stderr | 5 ++++- codegen/ui_tests/rhai_mod_non_clonable_return.stderr | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/codegen/ui_tests/rhai_fn_non_clonable_return.stderr b/codegen/ui_tests/rhai_fn_non_clonable_return.stderr index d614b6bc..3dea1ebc 100644 --- a/codegen/ui_tests/rhai_fn_non_clonable_return.stderr +++ b/codegen/ui_tests/rhai_fn_non_clonable_return.stderr @@ -2,7 +2,10 @@ error[E0277]: the trait bound `NonClonable: Clone` is not satisfied --> $DIR/rhai_fn_non_clonable_return.rs:11:8 | 11 | pub fn test_fn(input: f32) -> NonClonable { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable` + | ^^^^^^^^^^^^^^^^^^^^^^^----------- + | | | + | | required by a bound introduced by this call + | the trait `Clone` is not implemented for `NonClonable` | note: required by a bound in `rhai::Dynamic::from` --> $DIR/dynamic.rs:1043:30 diff --git a/codegen/ui_tests/rhai_mod_non_clonable_return.stderr b/codegen/ui_tests/rhai_mod_non_clonable_return.stderr index a660003d..aa542503 100644 --- a/codegen/ui_tests/rhai_mod_non_clonable_return.stderr +++ b/codegen/ui_tests/rhai_mod_non_clonable_return.stderr @@ -2,7 +2,10 @@ error[E0277]: the trait bound `NonClonable: Clone` is not satisfied --> $DIR/rhai_mod_non_clonable_return.rs:12:12 | 12 | pub fn test_fn(input: f32) -> NonClonable { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable` + | ^^^^^^^^^^^^^^^^^^^^^^^----------- + | | | + | | required by a bound introduced by this call + | the trait `Clone` is not implemented for `NonClonable` | note: required by a bound in `rhai::Dynamic::from` --> $DIR/dynamic.rs:1043:30