rust/src/test/ui/issues/issue-2312.rs
2019-07-03 06:30:28 +09:00

16 lines
295 B
Rust

// build-pass (FIXME(62277): could be 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() { }