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

16 lines
191 B
Rust
Raw Normal View History

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;
}
}
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() { }