rust/src/test/run-pass/issue-2311-2.rs
2012-09-06 10:52:26 -07:00

16 lines
193 B
Rust

trait clam<A: copy> { }
struct foo<A: copy> {
let x: A;
fn bar<B,C:clam<A>>(c: C) -> B {
fail;
}
}
fn foo<A: copy>(b: A) -> foo<A> {
foo {
x: b
}
}
fn main() { }