13 lines
144 B
Rust
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() {}
|