From 7b6ac8bf21d6346c90bc8ea1d2557690a63fbf86 Mon Sep 17 00:00:00 2001 From: lcnr Date: Fri, 26 Jan 2024 15:51:20 +0100 Subject: [PATCH] remove unnecessary test --- .../traits/next-solver/temporary-ambiguity.rs | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 tests/ui/traits/next-solver/temporary-ambiguity.rs diff --git a/tests/ui/traits/next-solver/temporary-ambiguity.rs b/tests/ui/traits/next-solver/temporary-ambiguity.rs deleted file mode 100644 index 6102de7e446d6..0000000000000 --- a/tests/ui/traits/next-solver/temporary-ambiguity.rs +++ /dev/null @@ -1,22 +0,0 @@ -// compile-flags: -Znext-solver -// check-pass - -// Checks that we don't explode when we assemble >1 candidate for a goal. - -struct Wrapper(T); - -trait Foo {} - -impl Foo for Wrapper {} - -impl Foo for Wrapper<()> {} - -fn needs_foo(_: impl Foo) {} - -fn main() { - let mut x = Default::default(); - let w = Wrapper(x); - needs_foo(w); - x = 1; - let _ = x; -}