rust/tests/ui/type-alias-impl-trait
bors 4b91288484 Auto merge of #115486 - compiler-errors:dont-capture-late-pls, r=cjgillot
Correctly deny late-bound lifetimes from parent in anon consts and TAITs

Reuse the `AnonConstBoundary` scope (introduced in #108553, renamed in this PR to `LateBoundary`) to deny late-bound vars of *all* kinds (ty/const/lifetime) in anon consts and TAITs.

Side-note, but I would like to consolidate this with the error reporting for RPITs (E0657):
c4f25777a0/compiler/rustc_hir_analysis/src/collect/resolve_bound_vars.rs (L733-L754) but the semantics about what we're allowed to capture there are slightly different, so I'm leaving that untouched.

Fixes #115474
2023-09-20 03:34:51 +00:00
..
2023-04-25 19:53:09 +00:00
2023-08-12 17:18:46 +00:00
2023-08-12 17:18:46 +00:00
2023-08-12 17:18:46 +00:00
2023-07-03 09:12:15 +02:00
2023-02-16 15:14:45 +11:00
2023-02-16 15:14:45 +11:00
2023-04-15 15:23:32 -07:00
2023-01-30 21:51:35 +00:00
2023-05-12 00:10:52 +00:00
2023-01-30 21:51:35 +00:00
2023-05-12 00:10:52 +00:00
2023-01-19 15:31:59 +03:00
2023-08-12 17:18:46 +00:00
2023-08-12 17:18:46 +00:00