diff options
Diffstat (limited to 'src/test/compile-fail/send-is-not-static-ensures-scoping.rs')
| -rwxr-xr-x | src/test/compile-fail/send-is-not-static-ensures-scoping.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/test/compile-fail/send-is-not-static-ensures-scoping.rs b/src/test/compile-fail/send-is-not-static-ensures-scoping.rs index 0b74892d66c..abbcd7e4590 100755 --- a/src/test/compile-fail/send-is-not-static-ensures-scoping.rs +++ b/src/test/compile-fail/send-is-not-static-ensures-scoping.rs @@ -8,18 +8,17 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![feature(core, std_misc)] -use std::thread::Thread; +use std::thread; fn main() { let bad = { let x = 1; let y = &x; - Thread::scoped(|| { //~ ERROR cannot infer an appropriate lifetime + thread::scoped(|| { //~ ERROR cannot infer an appropriate lifetime let _z = y; }) }; - bad.join().ok().unwrap(); + bad.join(); } |
