rollup merge of #16839 : treeman/issue-15358

This commit is contained in:
Alex Crichton 2014-08-30 23:47:23 -07:00
commit d1a5b277a1
12 changed files with 12 additions and 12 deletions

View file

@ -8,5 +8,5 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
fn false() { } //~ ERROR found `false` in ident position
fn false() { } //~ ERROR expected identifier, found keyword `false`
fn main() { }

View file

@ -8,5 +8,5 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
fn true() { } //~ ERROR found `true` in ident position
fn true() { } //~ ERROR expected identifier, found keyword `true`
fn main() { }

View file

@ -9,5 +9,5 @@
// except according to those terms.
fn main() {
let super: int; //~ ERROR found `super` in ident position
let super: int; //~ ERROR expected identifier, found keyword `super`
}

View file

@ -9,5 +9,5 @@
// except according to those terms.
pub mod break {
//~^ ERROR found `break` in ident position
//~^ ERROR expected identifier, found keyword `break`
}

View file

@ -10,6 +10,6 @@
struct s {
let foo: (),
//~^ ERROR found `let` in ident position
//~^ ERROR expected identifier, found keyword `let`
//~^^ ERROR expected `:`, found `foo`
}

View file

@ -10,6 +10,6 @@
fn f() {
let v = [mut 1, 2, 3, 4];
//~^ ERROR found `mut` in ident position
//~^ ERROR expected identifier, found keyword `mut`
//~^^ ERROR expected `]`, found `1`
}

View file

@ -9,5 +9,5 @@
// except according to those terms.
type v = [mut int];
//~^ ERROR found `mut` in ident position
//~^ ERROR expected identifier, found keyword `mut`
//~^^ ERROR expected `]`, found `int`

View file

@ -10,6 +10,6 @@
fn f() {
let a_box = box mut 42;
//~^ ERROR found `mut` in ident position
//~^ ERROR expected identifier, found keyword `mut`
//~^^ ERROR expected `;`, found `42`
}

View file

@ -9,5 +9,5 @@
// except according to those terms.
type mut_box = Box<mut int>;
//~^ ERROR found `mut` in ident position
//~^ ERROR expected identifier, found keyword `mut`
//~^^ ERROR expected `,`, found `int`

View file

@ -13,5 +13,5 @@
fn f<X>() {}
pub fn main() {
f<type>(); //~ ERROR found `type` in ident position
f<type>(); //~ ERROR expected identifier, found keyword `type`
}