diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-2312.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-2312.rs b/src/test/ui/issues/issue-2312.rs new file mode 100644 index 000000000..8a94bcbd4 --- /dev/null +++ b/src/test/ui/issues/issue-2312.rs @@ -0,0 +1,16 @@ +// check-pass +#![allow(dead_code)] +#![allow(non_camel_case_types)] + +// Testing that the B's are resolved + + +trait clam<A> { fn get(self) -> A; } + +struct foo(isize); + +impl foo { + pub fn bar<B,C:clam<B>>(&self, _c: C) -> B { panic!(); } +} + +pub fn main() { } |