mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 13:37:48 +00:00
13 lines
254 B
Rust
13 lines
254 B
Rust
//@ known-bug: #139409
|
|
//@ compile-flags: -Znext-solver=globally
|
|
|
|
fn main() {
|
|
trait B<C> {}
|
|
impl<C> B<C> for () {}
|
|
trait D<C, E>: B<C> + B<E> {
|
|
fn f(&self) {}
|
|
}
|
|
impl<C, E> D<C, E> for () {}
|
|
(&() as &dyn D<&(), &()>).f()
|
|
}
|