]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-2312.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-2312.rs
1 // compile-pass
2 #![allow(dead_code)]
3 #![allow(non_camel_case_types)]
4
5 // Testing that the B's are resolved
6
7
8 trait clam<A> { fn get(self) -> A; }
9
10 struct foo(isize);
11
12 impl foo {
13     pub fn bar<B,C:clam<B>>(&self, _c: C) -> B { panic!(); }
14 }
15
16 pub fn main() { }