diff options
| author | Michael Goulet <michael@errs.io> | 2025-03-06 12:22:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-06 12:22:21 -0500 |
| commit | 484d8dd5b4eeeea893d8163f7bee1fb1819b40b9 (patch) | |
| tree | 388ffc3d7824bd7675e75fb98b9f602309e438f5 /compiler/rustc_codegen_llvm/src/asm.rs | |
| parent | 1e3a0388a575de5b227a79f67afa68988dab0404 (diff) | |
| parent | a23566a57e4d53a35827becc2f65ce27951276c8 (diff) | |
| download | rust-484d8dd5b4eeeea893d8163f7bee1fb1819b40b9.tar.gz rust-484d8dd5b4eeeea893d8163f7bee1fb1819b40b9.zip | |
Rollup merge of #137825 - estebank:rtn-sugg-2, r=compiler-errors
Provide more context on resolve error caused from incorrect RTN
When encountering a resolve E0575 error for an associated method (when a type was expected), see if it could have been an intended return type notation bound.
```
error[E0575]: expected associated type, found associated function `Trait::method`
--> $DIR/bad-inputs-and-output.rs:31:36
|
LL | fn foo_qualified<T: Trait>() where <T as Trait>::method(i32): Send {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not a associated type
|
help: you might have meant to use the return type notation syntax
|
LL - fn foo_qualified<T: Trait>() where <T as Trait>::method(i32): Send {}
LL + fn foo_qualified<T: Trait>() where T::method(..): Send {}
|
```
Built on top of #137824, only second commit is relevant for review.
r? ````````@compiler-errors````````
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/asm.rs')
0 files changed, 0 insertions, 0 deletions
