Add a test for issue #2312
This commit is contained in:
parent
bd9d5e50be
commit
03330baf9c
1 changed files with 11 additions and 0 deletions
11
src/test/run-pass/issue-2312.rs
Normal file
11
src/test/run-pass/issue-2312.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
// Testing that the B's are resolved
|
||||
|
||||
trait clam<A> { }
|
||||
|
||||
enum foo = int;
|
||||
|
||||
impl foo {
|
||||
fn bar<B,C:clam<B>>(c: C) -> B { fail; }
|
||||
}
|
||||
|
||||
fn main() { }
|
Loading…
Add table
Add a link
Reference in a new issue