rust/tests/ui/traits/dyn-drop-principal-with-projections.rs

13 lines
163 B
Rust

//@ check-pass
trait Tr {
type Assoc;
}
impl Tr for () {
type Assoc = ();
}
fn main() {
let x = &() as &(dyn Tr<Assoc = ()> + Send) as &dyn Send;
}