about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-02-23 06:18:05 +0100
committerGitHub <noreply@github.com>2023-02-23 06:18:05 +0100
commitef27e438074252c2c36250dc0f54e89f7da4999d (patch)
tree206707e52a1570a22d80b54ad2e967bd522521b6 /compiler/rustc_codegen_gcc/example/std_example.rs
parent0978711950b77582e4f8f334f6e9848d48ab7790 (diff)
parentb14eb0c497eaac65cd67c02270c6f7bd8ecc5b3f (diff)
downloadrust-ef27e438074252c2c36250dc0f54e89f7da4999d.tar.gz
rust-ef27e438074252c2c36250dc0f54e89f7da4999d.zip
Rollup merge of #108063 - compiler-errors:associated-type-bounds-in-bad-position, r=cjgillot
Ban associated type bounds in bad positions

We should not try to lower associated type bounds into TAITs in positions where `impl Trait` is not allowed (except for in `where` clauses, like `where T: Trait<Assoc: Bound>`).

This is achieved by using the same `rustc_ast_lowering` machinery as impl-trait does to characterize positions as universal/existential/disallowed.

Fixes #106077

Split out the first commit into #108066, since it's not really related.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions