Open ethe opened 1 month ago
Duplicate of https://github.com/rust-lang/rust/issues/64552
Convert the type alias to a struct can workaround this https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=b310f0b751f46eac66956c4eb1f85e7f
I tried this code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=4f2133cbf38d27366a8edd106b5485e5
I expected to see this happen: Same as below, compile pass: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=69e324c356bd126e575a971a7cbbf2fa
Instead, this happened: