rust/src/test/run-pass/issue-3424.rs

17 lines
324 B
Rust
Raw Normal View History

2012-12-06 20:32:13 -06:00
// rustc --test ignores2.rs && ./ignores2
extern mod std;
use path::{Path};
type rsrc_loader = fn~ (path: &Path) -> result::Result<~str, ~str>;
#[test]
fn tester()
{
let loader: rsrc_loader = |_path| {result::Ok(~"more blah")};
let path = path::from_str("blah");
assert loader(&path).is_ok();
}
fn main() {}