impl Trait
in macros: subst.rs
"index out of bounds: the len is 1 but the index is 1"
#10286
Labels
A-ty
type system / type inference / traits / method resolution
C-bug
Category: bug
S-actionable
Someone could pick this issue up and work on it right now
#9639 has been closed, however a very similar issue is still happening to me. I encountered it the moment I added a
ctor!
macro call at this line. (Note that the linked crate requires beta/nightly to compile, but only due to code unrelated to the issue; the minimal repro compiles fine on stable.)The macro call looks required for the crash to trigger, and manually expanding it solves the issue. This also happened in #9639 and the minimal repro posted there doesn't seem to address this.
Here's a minimal repro of my issue:
It gives this error in vscode's output tab:
I can't seem to get a full backtrace even when setting
RUST_BACKTRACE=full
.The text was updated successfully, but these errors were encountered: