Unnamed repository; edit this file 'description' to name the repository.
Rollup merge of #139124 - xtexx:gh-139082, r=compiler-errors
compiler: report error when trait object type param reference self Fixes #139082. Emits an error when `Self` is found in the projection bounds of a trait object. In type aliases, `Self` has no meaning, so `type A = &'static dyn B` where `trait B = Fn() -> Self` will expands to `type A = &'static Fn() -> Self` which is illegal, causing the region solver to bail out when hitting the uninferred Self. r? ````@compiler-errors```` ````@fee1-dead````
Stuart Cook 2025-04-08
parent 3fcf785 · parent 8aff3f4 · commit 073720b
0 files changed, 0 insertions, 0 deletions