Segfault with iterators and vector of borrowed structs #7573
Labels
A-lifetimes
Area: Lifetimes / regions
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
The following code segfaults when run:
This is with 040ac2a. It's suspicious to me that the compiler even accepts the
~[&PkgId]
type (shouldn't the references need a lifetime?)If I remove the
junk
field, or changeio::stdout().write_line
toio::println
, then instead of a segfault I get a failure in the io library.The text was updated successfully, but these errors were encountered: