diff options
| author | Michael Goulet <michael@errs.io> | 2024-10-14 13:49:31 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-10-15 20:42:17 -0400 |
| commit | 0ead25c4a99242a526ef1076c52fa420c65b667a (patch) | |
| tree | d8438b98135576465c81354d6aa4af7ac3632d83 /tests/ui/impl-trait/method-resolution4.rs | |
| parent | 8528387743709360f1cb2d3b5538342ec71bd03a (diff) | |
| download | rust-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.rs | 2 |
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() } |
