From 9918693037dce8aa4bb6f08741b6812923486c18 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 19 Jun 2024 11:26:03 +0200 Subject: Merging upstream version 1.76.0+dfsg1. Signed-off-by: Daniel Baumann --- .../trait-upcast-lhs-needs-normalization.rs | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 tests/ui/traits/new-solver/trait-upcast-lhs-needs-normalization.rs (limited to 'tests/ui/traits/new-solver/trait-upcast-lhs-needs-normalization.rs') diff --git a/tests/ui/traits/new-solver/trait-upcast-lhs-needs-normalization.rs b/tests/ui/traits/new-solver/trait-upcast-lhs-needs-normalization.rs deleted file mode 100644 index 43cd773bf..000000000 --- a/tests/ui/traits/new-solver/trait-upcast-lhs-needs-normalization.rs +++ /dev/null @@ -1,20 +0,0 @@ -// check-pass -// compile-flags: -Ztrait-solver=next - -#![feature(trait_upcasting)] - -pub trait A {} -pub trait B: A {} - -pub trait Mirror { - type Assoc: ?Sized; -} -impl Mirror for T { - type Assoc = T; -} - -pub fn foo<'a>(x: &'a ::Assoc) -> &'a (dyn A + 'static) { - x -} - -fn main() {} -- cgit v1.2.3