diff --git a/src/test/compile-fail/borrowck-call-sendfn.rs b/src/test/compile-fail/borrowck-call-sendfn.rs deleted file mode 100644 index eb2ea6b3de4..00000000000 --- a/src/test/compile-fail/borrowck-call-sendfn.rs +++ /dev/null @@ -1,19 +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 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -struct Foo { - f: proc():'static -} - -fn call(x: Foo) { - x.f(); //~ ERROR does not implement any method in scope named `f` -} - -fn main() {} diff --git a/src/test/compile-fail/issue-13599.rs b/src/test/compile-fail/issue-13599.rs deleted file mode 100644 index eee23f1feba..00000000000 --- a/src/test/compile-fail/issue-13599.rs +++ /dev/null @@ -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 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -// Test that a mismatched proc / closure type is correctly reported. - -fn expect_closure(_: ||) {} - -fn expect_proc(_: proc()) {} - -fn main() { - expect_closure(proc() {}); - //~^ ERROR mismatched types: expected `||`, found `proc()` (expected closure, found proc) - - expect_proc(|| {}); - //~^ ERROR mismatched types: expected `proc()`, found `||` (expected proc, found closure) -} diff --git a/src/test/compile-fail/kindck-proc-bounds.rs b/src/test/compile-fail/kindck-proc-bounds.rs deleted file mode 100644 index d87d1a33ca1..00000000000 --- a/src/test/compile-fail/kindck-proc-bounds.rs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 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 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -fn is_send() {} -fn is_freeze() {} - -fn foo<'a>() { - is_send::(); - //~^ ERROR: the trait `core::kinds::Send` is not implemented - - is_freeze::(); - //~^ ERROR: the trait `core::kinds::Sync` is not implemented -} - -fn main() { } diff --git a/src/test/compile-fail/regions-proc-bounds.rs b/src/test/compile-fail/regions-proc-bounds.rs deleted file mode 100644 index 4c95e1eac6d..00000000000 --- a/src/test/compile-fail/regions-proc-bounds.rs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 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 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -fn is_static() {} - -fn foo<'a>() { - is_static::(); - //~^ ERROR declared lifetime bound not satisfied - - is_static::(); -} - -fn main() { } diff --git a/src/test/run-pass/proc-bounds.rs b/src/test/run-pass/proc-bounds.rs deleted file mode 100644 index 7241b0b88b9..00000000000 --- a/src/test/run-pass/proc-bounds.rs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 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 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -fn foo() {} -fn bar(_: T) {} - -fn is_send() {} -fn is_freeze() {} -fn is_static() {} - -pub fn main() { - foo::(); - foo::(); - foo::(); - foo::(); - foo::(); - - is_send::(); - is_freeze::(); - is_static::(); - - - let a = 3i; - bar::(proc() { - let b = &a; - println!("{}", *b); - }); -}