diff options
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/issue-2354-1.rs | 12 | ||||
| -rw-r--r-- | src/test/compile-fail/issue-2354.rs | 10 |
2 files changed, 14 insertions, 8 deletions
diff --git a/src/test/compile-fail/issue-2354-1.rs b/src/test/compile-fail/issue-2354-1.rs new file mode 100644 index 00000000000..67b5c6becc7 --- /dev/null +++ b/src/test/compile-fail/issue-2354-1.rs @@ -0,0 +1,12 @@ +// Copyright 2013 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +static foo: int = 2; } //~ ERROR incorrect close delimiter: + diff --git a/src/test/compile-fail/issue-2354.rs b/src/test/compile-fail/issue-2354.rs index 409e1c1f040..9761bd3317c 100644 --- a/src/test/compile-fail/issue-2354.rs +++ b/src/test/compile-fail/issue-2354.rs @@ -8,13 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// xfail-test -/* - Ideally, the error about the missing close brace in foo would be reported - near the corresponding open brace. But currently it's reported at the end. - xfailed for now (see Issue #2354) - */ -fn foo() { //~ ERROR this open brace is not closed +fn foo() { //~ NOTE Did you mean to close this delimiter? match Some(x) { Some(y) { fail!(); } None { fail!(); } @@ -25,4 +19,4 @@ fn bar() { while (i < 1000) {} } -fn main() {} +fn main() {} //~ ERROR This file contains an un-closed delimiter |
