error: rustc_outlives
  --> $DIR/reference.rs:4:1
   |
LL | struct Foo<'a, T> {
   | ^^^^^^^^^^^^^^^^^
   |
   = note: T: 'a

error: aborting due to previous error