diff options
| author | lcnr <rust@lcnr.de> | 2024-01-26 15:51:20 +0100 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2024-01-26 15:55:23 +0100 |
| commit | 7b6ac8bf21d6346c90bc8ea1d2557690a63fbf86 (patch) | |
| tree | 90bf04eace82bd4d94cb81558b59f8da5bd19174 | |
| parent | e87b8c7f34b9890503f59c93fa4805d1920f2b9c (diff) | |
| download | rust-7b6ac8bf21d6346c90bc8ea1d2557690a63fbf86.tar.gz rust-7b6ac8bf21d6346c90bc8ea1d2557690a63fbf86.zip | |
remove unnecessary test
| -rw-r--r-- | tests/ui/traits/next-solver/temporary-ambiguity.rs | 22 |
1 files changed, 0 insertions, 22 deletions
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 6102de7e446..00000000000 --- 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>(T); - -trait Foo {} - -impl Foo for Wrapper<i32> {} - -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; -} |
