Skip to content

Commit 5e531c3

Browse files
committed
Update quiz questions to 2018 edition
1 parent 0450b95 commit 5e531c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/quiz.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function showExplanation() {
214214
textOutput.value = questions[q].answer;
215215
}
216216
buttonPlayground.href =
217-
"https://play.rust-lang.org/?version=stable&mode=debug&edition=2015&code="
217+
"https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&code="
218218
+ encodeURIComponent(questions[q].code.trim());
219219
show(buttonPlayground);
220220
show(explanationAlert);

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ fn check_answer(path: &Path, expected: &str) {
138138

139139
let status = Command::new("rustc")
140140
.arg(path)
141-
.arg("--out-dir")
142-
.arg("/tmp/rust-quiz")
141+
.arg("--edition=2018")
142+
.arg("--out-dir=/tmp/rust-quiz")
143143
.stderr(Stdio::null())
144144
.status()
145145
.expect("failed to execute rustc");

0 commit comments

Comments
 (0)