diff options
| author | TheLazyDutchman <jjpouwels2004@gmail.com> | 2023-11-05 15:29:18 +0100 |
|---|---|---|
| committer | TheLazyDutchman <jjpouwels2004@gmail.com> | 2023-12-06 11:05:22 +0100 |
| commit | 3234418806de31db283a00fbcf70cd2857c9a81e (patch) | |
| tree | 4d7df5f6bde216827b9a9f49645471b2edce6bc2 /compiler/rustc_hir_analysis/src/errors.rs | |
| parent | 0b8a61b235662d397721d1b88ddefdfc147ba39a (diff) | |
| download | rust-3234418806de31db283a00fbcf70cd2857c9a81e.tar.gz rust-3234418806de31db283a00fbcf70cd2857c9a81e.zip | |
Point out shadowed associated types
Shadowing the associated type of a supertrait is allowed. This however makes it impossible to set the associated type of the supertrait in a dyn object. This PR makes the error message for that case clearer, like adding a note that shadowing is happening, as well as suggesting renaming of one of the associated types. r=petrochenckov
Diffstat (limited to 'compiler/rustc_hir_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
