summary refs log tree commit diff
path: root/src/test/ui/issues/issue-2312.rs
blob: 1fc7b5a3f34c59e0beb8c6fbf7ff2cad9e612cf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// compile-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() { }