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

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

12 lines
169 B
Rust
Raw Normal View History

2017-06-17 20:43:10 +00:00
#![allow(warnings)]
trait Trait<T> {
fn foo(_: T) {}
}
2018-04-15 21:21:00 +00:00
pub struct Foo<T = Box<Trait<DefaultFoo>>>; //~ ERROR cycle detected
type DefaultFoo = Foo;
2017-06-17 20:43:10 +00:00
fn main() {
}