2012-09-07 16:52:28 -05:00
|
|
|
trait clam<A: Copy> { }
|
|
|
|
struct foo<A: Copy> {
|
2012-09-06 21:40:15 -05:00
|
|
|
x: A,
|
2012-07-13 15:03:21 -05:00
|
|
|
fn bar<B,C:clam<A>>(c: C) -> B {
|
|
|
|
fail;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-09-07 16:52:28 -05:00
|
|
|
fn foo<A: Copy>(b: A) -> foo<A> {
|
2012-09-05 17:58:43 -05:00
|
|
|
foo {
|
|
|
|
x: b
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-07-13 15:03:21 -05:00
|
|
|
fn main() { }
|