diff options
| author | Adrian Taylor <adetaylor@chromium.org> | 2024-12-19 11:12:35 +0000 |
|---|---|---|
| committer | Adrian Taylor <adetaylor@chromium.org> | 2024-12-19 12:02:08 +0000 |
| commit | cb88030b286dab999d835aeebd21a2cc56c96b8c (patch) | |
| tree | f4dd9a096000d43c54b9b22f89c746a706abcdd2 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | eedc229049b937a007a79ee6fc2801bfc484240e (diff) | |
| download | rust-cb88030b286dab999d835aeebd21a2cc56c96b8c.tar.gz rust-cb88030b286dab999d835aeebd21a2cc56c96b8c.zip | |
Arbitrary self types v2: niche deshadowing test
Arbitrary self types v2 attempts to detect cases where methods in an "outer" type (e.g. a smart pointer) might "shadow" methods in the referent. There are a couple of cases where the current code makes no attempt to detect such shadowing. Both of these cases only apply if other unstable features are enabled. Add a test, mostly for illustrative purposes, so we can see the shadowing cases that can occur.
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions
