rust/tests/ui/issues/issue-2312.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
258 B
Rust
Raw Normal View History

// check-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]
2012-08-06 18:08:52 +00:00
// Testing that the B's are resolved
trait clam<A> { fn get(self) -> A; }
2012-08-06 18:08:52 +00:00
struct foo(isize);
2012-08-06 18:08:52 +00:00
impl foo {
pub fn bar<B,C:clam<B>>(&self, _c: C) -> B { panic!(); }
2012-08-06 18:08:52 +00:00
}
pub fn main() { }