16 lines
193 B
Rust
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() { }
|