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

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

14 lines
247 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
//~^ ERROR `T` is never used
//~| ERROR `Trait` cannot be made into an object
2018-04-15 21:21:00 +00:00
type DefaultFoo = Foo;
2017-06-17 20:43:10 +00:00
fn main() {
}