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

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

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 21:21:00 +00:00
//~^ ERROR cycle detected
fn main() { }