rust/tests/ui/traits/object/redundant.rs

13 lines
144 B
Rust

//@ check-pass
trait Foo: Bar<Out = ()> {}
trait Bar {
type Out;
}
fn w(x: &dyn Foo<Out = ()>) {
let x: &dyn Foo = x;
}
fn main() {}