2012-07-31 12:27:51 -05:00
|
|
|
trait clam<A: copy> { }
|
2012-08-15 20:46:55 -05:00
|
|
|
struct foo<A: copy> {
|
2012-07-13 15:03:21 -05:00
|
|
|
let x: A;
|
|
|
|
fn bar<B,C:clam<A>>(c: C) -> B {
|
|
|
|
fail;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-09-05 17:58:43 -05:00
|
|
|
fn foo<A: copy>(b: A) -> foo<A> {
|
|
|
|
foo {
|
|
|
|
x: b
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-07-13 15:03:21 -05:00
|
|
|
fn main() { }
|