Update error messages and un-xfail

This commit is contained in:
Tim Chevalier 2012-11-15 14:36:38 -08:00
parent 35b2960d00
commit d58e0e30ed
7 changed files with 8 additions and 25 deletions

View File

@ -1,6 +1,5 @@
// xfail-test
// error-pattern: attempted dynamic environment-capture
fn foo<T>() {
fn bar(b: T) { }
fn bar(b: T) { } //~ ERROR attempt to use a type argument out of scope
//~^ ERROR use of undeclared type name
}
fn main() { }

View File

@ -1,13 +1,6 @@
// xfail-fast
// xfail-test
// This is xfail'd due to bad typecheck error messages. (There is a spurious
// "expected `bool` but but found `int`" message.)
fn f(f: fn@(int) -> bool) -> bool { f(10i) }
fn main() {
assert do f() |i| { i == 10i } == 10i;
//~^ ERROR: expected `bool` but found `int`
//~^^ ERROR: expected `bool` but found `int`
}

View File

@ -1,12 +1,7 @@
// xfail-fast
// xfail-test
// This is xfail'd due to bad spurious typecheck error messages.
fn main() {
fn f() { }
fn g() { }
let x = f == g;
//~^ ERROR mismatched types
//~^^ ERROR cannot determine a type
//~^^ ERROR failed to find an implementation of trait
}

View File

@ -1,5 +1,4 @@
// error-pattern:unresolved
// xfail-test
// error-pattern:failed to resolve import
use spam::{ham, eggs};
mod spam {

View File

@ -1,5 +1,4 @@
// xfail-test
// error-pattern: unresolved
// error-pattern:failed to resolve import
use zed::bar;
use zed::baz;
mod zed {

View File

@ -1,7 +1,6 @@
// xfail-test
// -*- rust -*-
// error-pattern: enum of infinite size
// error-pattern: illegal recursive enum type; wrap the inner value in a box
enum mlist { cons(int, mlist), nil, }

View File

@ -1,8 +1,7 @@
// xfail-test
// Testing that we don't fail abnormally after hitting the errors
use unresolved::*; //~ ERROR unresolved modulename
//~^ ERROR unresolved does not name a module
use unresolved::*; //~ ERROR unresolved name
//~^ ERROR failed to resolve import
fn main() {
}