mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-19 18:34:08 +00:00
Update error messages and un-xfail
This commit is contained in:
parent
35b2960d00
commit
d58e0e30ed
@ -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() { }
|
||||
|
@ -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`
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
// error-pattern:unresolved
|
||||
// xfail-test
|
||||
// error-pattern:failed to resolve import
|
||||
use spam::{ham, eggs};
|
||||
|
||||
mod spam {
|
||||
|
@ -1,5 +1,4 @@
|
||||
// xfail-test
|
||||
// error-pattern: unresolved
|
||||
// error-pattern:failed to resolve import
|
||||
use zed::bar;
|
||||
use zed::baz;
|
||||
mod zed {
|
||||
|
@ -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, }
|
||||
|
||||
|
@ -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() {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user