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 --- .../new-solver/dont-normalize-proj-with-error.rs | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 tests/ui/traits/new-solver/dont-normalize-proj-with-error.rs (limited to 'tests/ui/traits/new-solver/dont-normalize-proj-with-error.rs') diff --git a/tests/ui/traits/new-solver/dont-normalize-proj-with-error.rs b/tests/ui/traits/new-solver/dont-normalize-proj-with-error.rs deleted file mode 100644 index 19a6fa990..000000000 --- a/tests/ui/traits/new-solver/dont-normalize-proj-with-error.rs +++ /dev/null @@ -1,22 +0,0 @@ -// compile-flags: -Ztrait-solver=next - -// Test that we don't incorrectly leak unconstrained inference variables -// if the projection contained an error. This caused an ICE in writeback. - -trait Mirror { - type Assoc: ?Sized; -} - -struct Wrapper(T); -impl Mirror for Wrapper { - type Assoc = T; -} - -fn mirror(_: W) -> Box { todo!() } - -fn type_error() -> TypeError { todo!() } -//~^ ERROR cannot find type `TypeError` in this scope - -fn main() { - let x = mirror(type_error()); -} -- cgit v1.2.3