test: Un-xfail some compile-fail tests
Changed a few error patterns to match rustc's errors where it seemed reasonable.
This commit is contained in:
parent
c22100ab2d
commit
e5e2811bc6
8 changed files with 2 additions and 23 deletions
|
@ -1,6 +1,3 @@
|
|||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// error-pattern: expecting
|
||||
|
||||
fn main() {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// error-pattern: attempted dynamic environment-capture
|
||||
fn foo() {
|
||||
let int x;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// error-pattern: attempted dynamic environment-capture
|
||||
fn foo(int x) {
|
||||
fn bar() {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// error-pattern: attempted dynamic environment-capture
|
||||
obj foo(int x) {
|
||||
fn mth() {
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// error-pattern: mismatched types
|
||||
|
||||
fn main() {
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// error-pattern: mismatched types
|
||||
|
||||
fn main() {
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// error-pattern: unresolved identifier
|
||||
// error-pattern: unresolved name
|
||||
obj oT() {
|
||||
fn get() -> int {
|
||||
ret 3;
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// -*- rust -*-
|
||||
|
||||
// error-pattern: token
|
||||
// error-pattern: unterminated block comment
|
||||
|
||||
/*
|
||||
* This is an un-balanced /* multi-line comment.
|
||||
|
|
Loading…
Reference in a new issue