Files
rust/tests/ui/generics/generic-trait-method-params-2311.rs
T
2026-01-21 13:44:01 +00:00

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() {}