diff --git a/src/test/run-pass/vector-sort-failure-safe.rs b/src/test/run-pass/vector-sort-failure-safe.rs index a45daad64b8d2..74f27e480909c 100644 --- a/src/test/run-pass/vector-sort-failure-safe.rs +++ b/src/test/run-pass/vector-sort-failure-safe.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +use std::task; use std::rand::{task_rng, Rng}; static MAX_LEN: uint = 20; @@ -60,7 +61,7 @@ pub fn main() { let v = main.clone(); - std::task::try(proc() { + task::try(proc() { let mut v = v; let mut fail_countdown = fail_countdown; v.sort_by(|a, b| {