Remove some obsolete ignored tests
* compile-fail/vec-add.rs is obsolete, there are no mutable vectors any more, #2711 is closed * compile-fail/issue-1451.rs is obsolete, there are no more structural records, #1451 is closed * compile-fail/issue-2074.rs is obsolete, an up to date test is in run-pass/nested-enum-same-names.rs, #2074 is closed * compile-fail/omitted-arg-wrong-types.rs is obsolete, #2093 is closed
This commit is contained in:
parent
53b9484daf
commit
3ca01676bc
|
@ -1,33 +0,0 @@
|
|||
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-test
|
||||
|
||||
struct T { f: extern "Rust" fn() };
|
||||
struct S { f: extern "Rust" fn() };
|
||||
|
||||
fn fooS(t: S) {
|
||||
}
|
||||
|
||||
fn fooT(t: T) {
|
||||
}
|
||||
|
||||
fn bar() {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let x: extern "Rust" fn() = bar;
|
||||
fooS(S {f: x});
|
||||
fooS(S {f: bar});
|
||||
|
||||
let x: extern "Rust" fn() = bar;
|
||||
fooT(T {f: x});
|
||||
fooT(T {f: bar});
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-test
|
||||
|
||||
fn main() {
|
||||
let one: || -> uint = || {
|
||||
enum r { a };
|
||||
a as uint
|
||||
};
|
||||
let two = || -> uint = || {
|
||||
enum r { a };
|
||||
a as uint
|
||||
};
|
||||
one(); two();
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-test - #2093
|
||||
|
||||
fn let_in<T>(x: T, f: |T|) {}
|
||||
|
||||
fn main() {
|
||||
let_in(3u, |i| { assert!(i == 3); });
|
||||
//~^ ERROR expected `uint` but found `int`
|
||||
|
||||
let_in(3, |i| { assert!(i == 3u); });
|
||||
//~^ ERROR expected `int` but found `uint`
|
||||
}
|
|
@ -1,73 +0,0 @@
|
|||
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-test
|
||||
|
||||
// FIXME (Issue #2711): + should allow immutable or mutable vectors on
|
||||
// the right hand side in all cases. We are getting compiler errors
|
||||
// about this now, so I'm ignoring the test for now. -eholk
|
||||
|
||||
fn add(i: ~[int], mut m: ~[int]) {
|
||||
|
||||
// Check that:
|
||||
// (1) vectors of any two mutabilities can be added
|
||||
// (2) result has mutability of lhs
|
||||
|
||||
add(i + ~[3],
|
||||
m + ~[3],
|
||||
~[3]);
|
||||
|
||||
add(i + ~[3],
|
||||
m + ~[3],
|
||||
~[3]);
|
||||
|
||||
add(i + i,
|
||||
m + i,
|
||||
i);
|
||||
|
||||
add(i + m,
|
||||
m + m,
|
||||
m);
|
||||
|
||||
add(m + ~[3], //~ ERROR mismatched types
|
||||
m + ~[3],
|
||||
m + ~[3]);
|
||||
|
||||
add(i + ~[3],
|
||||
i + ~[3], //~ ERROR mismatched types
|
||||
i + ~[3]);
|
||||
|
||||
add(m + ~[3], //~ ERROR mismatched types
|
||||
m + ~[3],
|
||||
m + ~[3]);
|
||||
|
||||
add(i + ~[3],
|
||||
i + ~[3], //~ ERROR mismatched types
|
||||
i + ~[3]);
|
||||
|
||||
add(m + i, //~ ERROR mismatched types
|
||||
m + i,
|
||||
m + i);
|
||||
|
||||
add(i + i,
|
||||
i + i, //~ ERROR mismatched types
|
||||
i + i);
|
||||
|
||||
add(m + m, //~ ERROR mismatched types
|
||||
m + m,
|
||||
m + m);
|
||||
|
||||
add(i + m,
|
||||
i + m, //~ ERROR mismatched types
|
||||
i + m);
|
||||
}
|
||||
|
||||
fn main() {
|
||||
}
|
Loading…
Reference in New Issue