diff options
Diffstat (limited to 'tests/ui/traits/new-solver/winnow-specializing-impls.rs')
-rw-r--r-- | tests/ui/traits/new-solver/winnow-specializing-impls.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/ui/traits/new-solver/winnow-specializing-impls.rs b/tests/ui/traits/new-solver/winnow-specializing-impls.rs deleted file mode 100644 index 06f64de74..000000000 --- a/tests/ui/traits/new-solver/winnow-specializing-impls.rs +++ /dev/null @@ -1,22 +0,0 @@ -// build-pass -// compile-flags: -Ztrait-solver=next - -// 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(); -} |