Skip to content

Instantly share code, notes, and snippets.

@mackwic
Created July 3, 2016 20:32
Show Gist options
  • Save mackwic/75fc94197561009c4840f02bfb34422d to your computer and use it in GitHub Desktop.
Save mackwic/75fc94197561009c4840f02bfb34422d to your computer and use it in GitHub Desktop.
rspec git:(runner_recursive_run_function) cargo test
Compiling getopts v0.2.14
Compiling num-traits v0.1.32
Compiling libc v0.2.11
Compiling rand v0.3.14
Compiling pulldown-cmark v0.0.3
Compiling tempdir v0.3.4
Compiling skeptic v0.4.0
Compiling expectest v0.5.1
Compiling rspec v0.1.0 (file:///Users/thomas/Documents/projects/rust/rspec)
src/runner.rs:60:95: 60:102 error: use of moved value: `befores` [E0382]
src/runner.rs:60 &mut Testable::Test(ref mut test_function) => Runner::run_test(test_function, befores, &mut child_ctx.after_each),
^~~~~~~
src/runner.rs:60:95: 60:102 help: run `rustc --explain E0382` to see a detailed explanation
src/runner.rs:60:95: 60:102 note: move occurs because `befores` has type `It`, which does not implement the `Copy` trait
src/runner.rs:60:109: 60:129 error: cannot borrow `child_ctx.after_each` as mutable more than once at a time [E0499]
src/runner.rs:60 &mut Testable::Test(ref mut test_function) => Runner::run_test(test_function, befores, &mut child_ctx.after_each),
^~~~~~~~~~~~~~~~~~~~
src/runner.rs:60 &mut Testable::Test(ref mut test_function) => Runner::run_test(test_function, befores, &mut child_ctx.after_each),
^~~~~~~~~~~~~~~~~~~~
src/runner.rs:78:5: 78:6 note: first borrow ends here
src/runner.rs:78 }
^
src/runner.rs:60:109: 60:129 help: run `rustc --explain E0499` to see a detailed explanation
error: aborting due to 2 previous errors
Build failed, waiting for other jobs to finish...
src/runner.rs:60:95: 60:102 error: use of moved value: `befores` [E0382]
src/runner.rs:60 &mut Testable::Test(ref mut test_function) => Runner::run_test(test_function, befores, &mut child_ctx.after_each),
^~~~~~~
src/runner.rs:60:95: 60:102 help: run `rustc --explain E0382` to see a detailed explanation
src/runner.rs:60:95: 60:102 note: move occurs because `befores` has type `It`, which does not implement the `Copy` trait
src/runner.rs:60:109: 60:129 error: cannot borrow `child_ctx.after_each` as mutable more than once at a time [E0499]
src/runner.rs:60 &mut Testable::Test(ref mut test_function) => Runner::run_test(test_function, befores, &mut child_ctx.after_each),
^~~~~~~~~~~~~~~~~~~~
src/runner.rs:60 &mut Testable::Test(ref mut test_function) => Runner::run_test(test_function, befores, &mut child_ctx.after_each),
^~~~~~~~~~~~~~~~~~~~
src/runner.rs:78:5: 78:6 note: first borrow ends here
src/runner.rs:78 }
^
src/runner.rs:60:109: 60:129 help: run `rustc --explain E0499` to see a detailed explanation
error: aborting due to 2 previous errors
error: Could not compile `rspec`.
To learn more, run the command again with --verbose.
[1] 47114 exit 101 cargo test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment