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

16 lines
193 B
Rust
Raw Normal View History

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