about summary refs log tree commit diff
path: root/tests/ui/impl-trait/method-resolution4.rs
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2025-09-23 17:33:24 +0200
committerlcnr <rust@lcnr.de>2025-09-26 16:33:15 +0200
commit148fd9ad3c434c26a952e01e37c35aa26cb8315c (patch)
treece2212f59abdb0e93ca76092ab1aaabd29d4cf8d /tests/ui/impl-trait/method-resolution4.rs
parent6b379b560df483307958f2a606a1dd514fff36ca (diff)
downloadrust-148fd9ad3c434c26a952e01e37c35aa26cb8315c.tar.gz
rust-148fd9ad3c434c26a952e01e37c35aa26cb8315c.zip
allow method calls on opaques
Diffstat (limited to 'tests/ui/impl-trait/method-resolution4.rs')
-rw-r--r--tests/ui/impl-trait/method-resolution4.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/ui/impl-trait/method-resolution4.rs b/tests/ui/impl-trait/method-resolution4.rs
index 90e7850cad5..f90a9309cda 100644
--- a/tests/ui/impl-trait/method-resolution4.rs
+++ b/tests/ui/impl-trait/method-resolution4.rs
@@ -6,12 +6,11 @@
 
 //@ revisions: current next
 //@[next] compile-flags: -Znext-solver
-//@[current] check-pass
+//@ check-pass
 
 fn foo(b: bool) -> impl Iterator<Item = ()> {
     if b {
         foo(false).next().unwrap();
-        //[next]~^ ERROR type annotations needed
     }
     std::iter::empty()
 }