mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
14 lines
240 B
Rust
14 lines
240 B
Rust
//! Regression test for https://github.com/rust-lang/rust/issues/2311
|
|
|
|
//@ check-pass
|
|
#![allow(non_camel_case_types)]
|
|
|
|
trait clam<A> {
|
|
fn get(self) -> A;
|
|
}
|
|
trait foo<A> {
|
|
fn bar<B, C: clam<A>>(&self, c: C) -> B;
|
|
}
|
|
|
|
pub fn main() {}
|