Fix tests.
This commit is contained in:
parent
3e08160653
commit
65b7135324
@ -1,10 +1,10 @@
|
|||||||
error[E0277]: the trait bound `NonClonable: Clone` is not satisfied
|
error[E0277]: the trait bound `NonClonable: Clone` is not satisfied
|
||||||
--> $DIR/rhai_fn_non_clonable_return.rs:11:8
|
--> $DIR/rhai_fn_non_clonable_return.rs:11:8
|
||||||
|
|
|
|
||||||
11 | pub fn test_fn(input: f32) -> NonClonable {
|
11 | pub fn test_fn(input: f32) -> NonClonable {
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable`
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable`
|
||||||
|
|
|
|
||||||
::: $WORKSPACE/src/dynamic.rs
|
::: $WORKSPACE/src/dynamic.rs
|
||||||
|
|
|
|
||||||
| pub fn from<T: Variant + Clone>(mut value: T) -> Self {
|
| pub fn from<T: Variant + Clone>(mut value: T) -> Self {
|
||||||
| ----- required by this bound in `rhai::Dynamic::from`
|
| ----- required by this bound in `rhai::Dynamic::from`
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
error[E0277]: the trait bound `NonClonable: Clone` is not satisfied
|
error[E0277]: the trait bound `NonClonable: Clone` is not satisfied
|
||||||
--> $DIR/rhai_mod_non_clonable_return.rs:12:12
|
--> $DIR/rhai_mod_non_clonable_return.rs:12:12
|
||||||
|
|
|
|
||||||
12 | pub fn test_fn(input: f32) -> NonClonable {
|
12 | pub fn test_fn(input: f32) -> NonClonable {
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable`
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable`
|
||||||
|
|
|
|
||||||
::: $WORKSPACE/src/dynamic.rs
|
::: $WORKSPACE/src/dynamic.rs
|
||||||
|
|
|
|
||||||
| pub fn from<T: Variant + Clone>(mut value: T) -> Self {
|
| pub fn from<T: Variant + Clone>(mut value: T) -> Self {
|
||||||
| ----- required by this bound in `rhai::Dynamic::from`
|
| ----- required by this bound in `rhai::Dynamic::from`
|
||||||
|
@ -251,7 +251,7 @@ fn test_for_string() -> Result<(), Box<EvalAltResult>> {
|
|||||||
let s = "hello";
|
let s = "hello";
|
||||||
let sum = 0;
|
let sum = 0;
|
||||||
|
|
||||||
for ch in s.chars() {
|
for ch in chars(s) {
|
||||||
sum += to_int(ch);
|
sum += to_int(ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user