Casting a reference to a trait object reference loses lifetime information #12781
Labels
A-lifetimes
Area: Lifetimes / regions
A-trait-system
Area: Trait system
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Best I can do, but it's self-contained:
This compiles. It shouldn't, since
foo
doesn't live for long enough. If I don't do the cast (this also happens with coercion), it fails with the expected error message.cc @nikomatsakis
The text was updated successfully, but these errors were encountered: