about summary refs log tree commit diff
path: root/tests/ui/impl-trait/method-resolution4.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-10-14 13:49:31 -0400
committerMichael Goulet <michael@errs.io>2024-10-15 20:42:17 -0400
commit0ead25c4a99242a526ef1076c52fa420c65b667a (patch)
treed8438b98135576465c81354d6aa4af7ac3632d83 /tests/ui/impl-trait/method-resolution4.rs
parent8528387743709360f1cb2d3b5538342ec71bd03a (diff)
downloadrust-0ead25c4a99242a526ef1076c52fa420c65b667a.tar.gz
rust-0ead25c4a99242a526ef1076c52fa420c65b667a.zip
Register a dummy candidate for failed structural normalization during candiate assembly
Diffstat (limited to 'tests/ui/impl-trait/method-resolution4.rs')
-rw-r--r--tests/ui/impl-trait/method-resolution4.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/ui/impl-trait/method-resolution4.rs b/tests/ui/impl-trait/method-resolution4.rs
index 8eeedf04cbe..5c8813ed792 100644
--- a/tests/ui/impl-trait/method-resolution4.rs
+++ b/tests/ui/impl-trait/method-resolution4.rs
@@ -9,11 +9,9 @@
 //@[current] check-pass
 
 fn foo(b: bool) -> impl Iterator<Item = ()> {
-    //[next]~^ ERROR the size for values of type `impl Iterator<Item = ()>` cannot be known at compilation time
     if b {
         foo(false).next().unwrap();
         //[next]~^ type annotations needed
-        //[next]~| ERROR the size for values of type `impl Iterator<Item = ()>` cannot be known at compilation time
     }
     std::iter::empty()
 }