diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-04-15 11:37:09 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-06-13 10:41:53 +0000 |
| commit | 9cf60ee9d33fadff387d83d09aef1ce43589e233 (patch) | |
| tree | 1b2769e5a57eaf2b7e1336b731d530569fabc8f3 /tests/ui/impl-trait/method-resolution3.rs | |
| parent | c75f7283bf52c6e2ec6a178f2b7717a4daddacf4 (diff) | |
| download | rust-9cf60ee9d33fadff387d83d09aef1ce43589e233.tar.gz rust-9cf60ee9d33fadff387d83d09aef1ce43589e233.zip | |
Method resolution constrains hidden types instead of rejecting method candidates
Diffstat (limited to 'tests/ui/impl-trait/method-resolution3.rs')
| -rw-r--r-- | tests/ui/impl-trait/method-resolution3.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/ui/impl-trait/method-resolution3.rs b/tests/ui/impl-trait/method-resolution3.rs index 8474e2da7db..8c47ef4fc75 100644 --- a/tests/ui/impl-trait/method-resolution3.rs +++ b/tests/ui/impl-trait/method-resolution3.rs @@ -16,12 +16,10 @@ impl Bar<i32> { } fn foo(x: bool) -> Bar<impl Sized> { - //[current]~^ ERROR: cycle if x { let x = foo(false); x.bar(); - //[current]~^ ERROR: no method named `bar` - //[next]~^^ ERROR: multiple applicable items in scope + //~^ ERROR: multiple applicable items in scope } todo!() } |
