mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-19 03:54:40 +00:00
17 lines
259 B
Rust
17 lines
259 B
Rust
//@ 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() { }
|