1 // ignore-tidy-linelength
3 #![feature(rustc_attrs)]
5 // Needs an explicit where clause stating outlives condition. (RFC 2093)
7 // Type T needs to outlive lifetime 'a.
9 enum Foo<'a, T> { //~ ERROR rustc_outlives
13 // Type U needs to outlive lifetime 'b
15 struct Bar<'b, U> { //~ ERROR rustc_outlives
19 // Type K needs to outlive lifetime 'c.
21 enum Ying<'c, K> { //~ ERROR rustc_outlives