mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-20 09:20:36 +00:00
13 lines
202 B
Rust
13 lines
202 B
Rust
#![allow(warnings)]
|
|
|
|
trait Trait<T> {
|
|
fn foo(_: T) {}
|
|
}
|
|
|
|
pub struct Foo<T = Box<dyn Trait<DefaultFoo>>>; //~ ERROR cycle detected
|
|
//~^ ERROR `T` is never used
|
|
type DefaultFoo = Foo;
|
|
|
|
fn main() {
|
|
}
|