mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-26 09:47:18 +00:00
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() {}
|