rust/tests/ui/const-generics
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-09-10 23:06:14 +02:00
2023-04-25 19:53:09 +00:00
2023-08-06 13:34:53 +00:00
2023-07-27 15:51:02 +00:00
2023-04-07 11:18:07 -07:00
2023-04-07 11:18:07 -07:00
2023-04-07 11:18:07 -07:00
2023-07-11 17:52:43 +08:00
2023-04-07 11:18:07 -07:00
2023-07-11 17:52:43 +08:00