diff options
| author | Jared Roesch <roeschinc@gmail.com> | 2015-08-05 14:18:29 -0700 | 
|---|---|---|
| committer | Jared Roesch <roeschinc@gmail.com> | 2015-08-06 00:46:51 -0700 | 
| commit | 83e43bb728b95d52039824d63b1ba5bbde5c5d7b (patch) | |
| tree | c921b41c9a919d47cf31348481bfd2b2f488edb4 /src | |
| parent | 471370a16b05d15ae769e96b90d1a306a469baca (diff) | |
| download | rust-83e43bb728b95d52039824d63b1ba5bbde5c5d7b.tar.gz rust-83e43bb728b95d52039824d63b1ba5bbde5c5d7b.zip | |
Fix expected parse error
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/parse-fail/better-expected.rs | 2 | ||||
| -rw-r--r-- | src/test/parse-fail/empty-impl-semicolon.rs | 2 | ||||
| -rw-r--r-- | src/test/parse-fail/multitrait.rs | 2 | ||||
| -rw-r--r-- | src/test/parse-fail/removed-syntax-closure-lifetime.rs | 3 | ||||
| -rw-r--r-- | src/test/parse-fail/removed-syntax-fixed-vec.rs | 2 | ||||
| -rw-r--r-- | src/test/parse-fail/removed-syntax-mut-vec-ty.rs | 2 | ||||
| -rw-r--r-- | src/test/parse-fail/removed-syntax-ptr-lifetime.rs | 2 | ||||
| -rw-r--r-- | src/test/parse-fail/removed-syntax-uniq-mut-ty.rs | 2 | 
8 files changed, 9 insertions, 8 deletions
| diff --git a/src/test/parse-fail/better-expected.rs b/src/test/parse-fail/better-expected.rs index 3f0e0d36d8f..b60201c251d 100644 --- a/src/test/parse-fail/better-expected.rs +++ b/src/test/parse-fail/better-expected.rs @@ -11,5 +11,5 @@ // compile-flags: -Z parse-only fn main() { - let x: [isize 3]; //~ ERROR expected one of `(`, `+`, `::`, `;`, `<`, or `]`, found `3` + let x: [isize 3]; //~ ERROR expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `3` } diff --git a/src/test/parse-fail/empty-impl-semicolon.rs b/src/test/parse-fail/empty-impl-semicolon.rs index d9f8add8cfb..9939f1e36ea 100644 --- a/src/test/parse-fail/empty-impl-semicolon.rs +++ b/src/test/parse-fail/empty-impl-semicolon.rs @@ -10,4 +10,4 @@ // compile-flags: -Z parse-only -impl Foo; //~ ERROR expected one of `(`, `+`, `::`, `<`, `for`, `where`, or `{`, found `;` +impl Foo; //~ ERROR expected one of `!`, `(`, `+`, `::`, `<`, `for`, `where`, or `{`, found `;` diff --git a/src/test/parse-fail/multitrait.rs b/src/test/parse-fail/multitrait.rs index 2a8d6d99957..b7c9b165884 100644 --- a/src/test/parse-fail/multitrait.rs +++ b/src/test/parse-fail/multitrait.rs @@ -15,7 +15,7 @@ struct S { } impl Cmp, ToString for S { -//~^ ERROR: expected one of `(`, `+`, `::`, `<`, `for`, `where`, or `{`, found `,` +//~^ ERROR: expected one of `!`, `(`, `+`, `::`, `<`, `for`, `where`, or `{`, found `,` fn eq(&&other: S) { false } fn to_string(&self) -> String { "hi".to_string() } } diff --git a/src/test/parse-fail/removed-syntax-closure-lifetime.rs b/src/test/parse-fail/removed-syntax-closure-lifetime.rs index 04d3757dcda..b305b1894a8 100644 --- a/src/test/parse-fail/removed-syntax-closure-lifetime.rs +++ b/src/test/parse-fail/removed-syntax-closure-lifetime.rs @@ -10,4 +10,5 @@ // compile-flags: -Z parse-only -type closure = Box<lt/fn()>; //~ ERROR expected one of `(`, `+`, `,`, `::`, `<`, or `>`, found `/` +type closure = Box<lt/fn()>; +//~^ ERROR expected one of `!`, `(`, `+`, `,`, `::`, `<`, or `>`, found `/` diff --git a/src/test/parse-fail/removed-syntax-fixed-vec.rs b/src/test/parse-fail/removed-syntax-fixed-vec.rs index ae61d1ea858..0f34db08852 100644 --- a/src/test/parse-fail/removed-syntax-fixed-vec.rs +++ b/src/test/parse-fail/removed-syntax-fixed-vec.rs @@ -10,4 +10,4 @@ // compile-flags: -Z parse-only -type v = [isize * 3]; //~ ERROR expected one of `(`, `+`, `::`, `;`, `<`, or `]`, found `*` +type v = [isize * 3]; //~ ERROR expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `*` diff --git a/src/test/parse-fail/removed-syntax-mut-vec-ty.rs b/src/test/parse-fail/removed-syntax-mut-vec-ty.rs index 00ea593656a..91918f01bb0 100644 --- a/src/test/parse-fail/removed-syntax-mut-vec-ty.rs +++ b/src/test/parse-fail/removed-syntax-mut-vec-ty.rs @@ -12,4 +12,4 @@ type v = [mut isize]; //~^ ERROR expected identifier, found keyword `mut` - //~^^ ERROR expected one of `(`, `+`, `::`, `;`, `<`, or `]`, found `isize` + //~^^ ERROR expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `isize` diff --git a/src/test/parse-fail/removed-syntax-ptr-lifetime.rs b/src/test/parse-fail/removed-syntax-ptr-lifetime.rs index e586753087a..ebef0e56e3e 100644 --- a/src/test/parse-fail/removed-syntax-ptr-lifetime.rs +++ b/src/test/parse-fail/removed-syntax-ptr-lifetime.rs @@ -10,4 +10,4 @@ // compile-flags: -Z parse-only -type bptr = &lifetime/isize; //~ ERROR expected one of `(`, `+`, `::`, `;`, or `<`, found `/` +type bptr = &lifetime/isize; //~ ERROR expected one of `!`, `(`, `+`, `::`, `;`, or `<`, found `/` diff --git a/src/test/parse-fail/removed-syntax-uniq-mut-ty.rs b/src/test/parse-fail/removed-syntax-uniq-mut-ty.rs index 77e64e7c997..e1637901266 100644 --- a/src/test/parse-fail/removed-syntax-uniq-mut-ty.rs +++ b/src/test/parse-fail/removed-syntax-uniq-mut-ty.rs @@ -12,4 +12,4 @@ type mut_box = Box<mut isize>; //~^ ERROR expected identifier, found keyword `mut` - //~^^ ERROR expected one of `(`, `+`, `,`, `::`, `<`, or `>`, found `isize` + //~^^ ERROR expected one of `!`, `(`, `+`, `,`, `::`, `<`, or `>`, found `isize` | 
