rust/src/test/run-pass/issue-2311-2.rs

11 lines
154 B
Rust
Raw Normal View History

trait clam<A: copy> { }
2012-07-13 15:03:21 -05:00
class foo<A: copy> {
let x: A;
new(b: A) { self.x = b; }
fn bar<B,C:clam<A>>(c: C) -> B {
fail;
}
}
fn main() { }