PageRenderTime 24ms CodeModel.GetById 17ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/src/test/run-pass/task-comm-1.rs

http://github.com/jruderman/rust
Rust | 8 lines | 6 code | 2 blank | 0 comment | 0 complexity | c757e58f12812f28a5693a72f369766e MD5 | raw file
1fn main() { test00(); }
2
3fn start() { debug!{"Started / Finished task."}; }
4
5fn test00() {
6    task::try(|| start() );
7    debug!{"Completing."};
8}