syntax: Fix #6416 by aborting on errors after test parse.

This commit is contained in:
Graydon Hoare
2013-07-25 01:03:53 -07:00
parent ba9c3ebc02
commit c3417b88aa
2 changed files with 24 additions and 9 deletions

View File

@@ -384,12 +384,10 @@ mod test {
span:sp(0,6)})
}
// FIXME (#6416): For some reason, this fails and causes a test failure, even though it's
// marked as `#[should_fail]`.
/*#[should_fail]
#[should_fail]
#[test] fn bad_path_expr_1() {
string_to_expr(@"::abc::def::return");
}*/
}
#[test] fn string_to_tts_1 () {
let (tts,_ps) = string_to_tts_and_sess(@"fn a (b : int) { b; }");