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

13 lines
198 B
Rust
Raw Normal View History

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