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

10 lines
115 B
Rust
Raw Normal View History

trait Trait {
type A;
type B;
}
fn foo<T: Trait<A = T::B>>() { }
2018-04-15 16:21:00 -05:00
//~^ ERROR cycle detected
fn main() { }