Regression in nightly-2022-05-01 relating to trait objects #96664
Labels
C-bug
Category: This is a bug.
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
When updating from nightly nightly-2022-04-30-x86_64-unknown-linux-gnu to nightly nightly-2022-05-01-x86_64-unknown-linux-gnu, some code that previously compiled stopped compiling. Here's the basic idea of it:
I expected to see this happen: compiles
Instead, this happened:
This code previously compiled, and the code already does what the advice of the error message suggests, so it seems like a regression to me.
If needed, you can get the full repro by looking at https://github.com/Edgeworth/memega
Version it worked on
nightly-2022-04-30-x86_64-unknown-linux-gnu
Version with regression
nightly-2022-05-01-x86_64-unknown-linux-gnu
The text was updated successfully, but these errors were encountered: