error: rustc_outlives
  --> $DIR/cross-crate.rs:4:1
   |
LL | / struct Foo<'a, T> {
LL | |     bar: std::slice::IterMut<'a, T>
LL | | }
   | |_^
   |
   = note: T: 'a

error: aborting due to previous error

