diff options
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() } |
