Skip to content

Commit

Permalink
Extra test for #2311
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Jul 13, 2012
1 parent cd31b7c commit 3c011aa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/run-pass/issue-2311-2.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
iface clam<A: copy> { }
class foo<A: copy> {
let x: A;
new(b: A) { self.x = b; }
fn bar<B,C:clam<A>>(c: C) -> B {
fail;
}
}

fn main() { }

0 comments on commit 3c011aa

Please sign in to comment.