Add tests for shortcomings of associated type bounds #122826
Merged
+63
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds the test in #122791 (comment)
Turns out that #121123 is what breaks
tests/ui/associated-type-bounds/cant-see-copy-bound-from-child-rigid.rs
(passes on nightly), but given that associated type bounds haven't landed anywhere yet, I'm happy with breaking it.This is unrelated to #122791, which just needed that original commit e6b64c6 stacked on top of it so that it wouldn't have tests failing.
r? lcnr