We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
use
1 parent 54f2147 commit 4a9d8ffCopy full SHA for 4a9d8ff
src/librusti/rusti.rc
@@ -122,7 +122,7 @@ fn run(repl: Repl, input: ~str) -> Repl {
122
123
debug!("building driver input");
124
let head = include_str!("wrapper.rs").to_owned();
125
- let foot = fmt!("%s\nfn main() {\n%s\n\nprint({\n%s\n})\n}",
+ let foot = fmt!("fn main() {\n%s\n%s\n\nprint({\n%s\n})\n}",
126
repl.view_items, repl.stmts, input);
127
let wrapped = driver::str_input(head + foot);
128
@@ -444,6 +444,7 @@ mod tests {
444
}
445
446
fn use_does_not_crash() {
447
+ // Regression tests for #5937
448
let mut r = repl();
449
let result = run_line(&mut r, io::stdin(), io::stdout(),
450
~"use core::util::with;", false);
0 commit comments