rust/src/test/run-fail/issue-2444.rs
2012-07-05 10:25:38 -07:00

10 lines
137 B
Rust

// error-pattern:explicit failure
enum e<T: const send> { e(arc::arc<T>) }
fn foo() -> e<int> {fail;}
fn main() {
let f = foo();
}