error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements --> $DIR/fail_covariant.rs:6:38 | 6 | let _co: Co> = Co( | ______________________________________^ 7 | | Covariant::>::default(), 8 | | ); | |_____^ | note: first, the lifetime cannot outlive the lifetime `'a` as defined on the function body at 5:19... --> $DIR/fail_covariant.rs:5:19 | 5 | fn covariant_fail<'a>() { | ^^ note: ...so that the expression is assignable --> $DIR/fail_covariant.rs:7:9 | 7 | Covariant::>::default(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: expected `type_variance::Covariant>` found `type_variance::Covariant>` = note: but, the lifetime must be valid for the static lifetime... note: ...so that the expression is assignable --> $DIR/fail_covariant.rs:6:38 | 6 | let _co: Co> = Co( | ______________________________________^ 7 | | Covariant::>::default(), 8 | | ); | |_____^ = note: expected `common::Co>` found `common::Co>`