diff options
| author | lcnr <rust@lcnr.de> | 2025-09-23 15:32:25 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2025-09-26 16:33:15 +0200 |
| commit | 6b379b560df483307958f2a606a1dd514fff36ca (patch) | |
| tree | 857c1e760d4c66445a8295f657a97ab7253109a1 /tests/ui/impl-trait/method-resolution4.rs | |
| parent | 70f6493f261810b07d69ab0ffb661cf4ed8a97a7 (diff) | |
| download | rust-6b379b560df483307958f2a606a1dd514fff36ca.tar.gz rust-6b379b560df483307958f2a606a1dd514fff36ca.zip | |
use `try_structurally_resolve_type` for method receiver
We'll still error due to the `opt_bad_ty` of `method_autoderef_steps`. This slightly worsens the span of `infer_var.method()` which is now the same as for `Box::new(infer_var).method()`. Unlike `structurally_resolve_type`, `probe_op` does not check whether the infcx is already tainted, so this results in 2 previously not emitted errors.
Diffstat (limited to 'tests/ui/impl-trait/method-resolution4.rs')
0 files changed, 0 insertions, 0 deletions
