1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-11-29 22:47:43 +02:00

feature: makes "compile" exercise print output, resolves #270

When running "compile"-mode exercises in interactive `verify` mode,
we print their output when we prompt the learner if they want to
continue. This improves the "experimentation" experience, since
trying different things does produce a visible change.
This commit is contained in:
Roberto Vidal
2020-02-26 20:38:44 +01:00
parent 7ce42941ea
commit 3b6d5c3aaa
3 changed files with 67 additions and 36 deletions

View File

@@ -8,7 +8,4 @@
fn slice_out_of_array() {
let a = [1, 2, 3, 4, 5];
let nice_slice = ???
assert_eq!([2, 3, 4], nice_slice)
}