diff options
Diffstat (limited to 'tests/ui/traits/new-solver/trait-upcast-lhs-needs-normalization.rs')
-rw-r--r-- | tests/ui/traits/new-solver/trait-upcast-lhs-needs-normalization.rs | 20 |
1 files changed, 0 insertions, 20 deletions
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<T: ?Sized> Mirror for T { - type Assoc = T; -} - -pub fn foo<'a>(x: &'a <dyn B + 'static as Mirror>::Assoc) -> &'a (dyn A + 'static) { - x -} - -fn main() {} |