blob: ec0351f404d7e4d55288394f88936010639d203a [file] [log] [blame]
//@ build-pass
//@ compile-flags: -Znext-solver
// Tests that the specializing impl `<() as Foo>` holds during codegen.
#![feature(min_specialization)]
trait Foo {
fn bar();
}
impl<T> Foo for T {
default fn bar() {}
}
impl Foo for () {
fn bar() {}
}
fn main() {
<() as Foo>::bar();
}