rust/src/test/compile-fail/closure-bounds-not-builtin.rs
2013-11-26 08:19:00 -08:00

9 lines
131 B
Rust

trait Foo {}
fn take(f: ||:Foo) {
//~^ ERROR only the builtin traits can be used as closure or object bounds
}
fn main() {}