mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user