2018-05-26 11:47:38 +01:00
|
|
|
// Check that lifetime bounds get checked the right way around with NLL enabled.
|
|
|
|
|
2019-09-01 17:30:19 -04:00
|
|
|
//@ check-pass
|
2018-05-26 11:47:38 +01:00
|
|
|
|
|
|
|
trait Visitor<'d> {
|
|
|
|
type Value;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a, 'd: 'a> Visitor<'d> for &'a () {
|
|
|
|
type Value = ();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn visit_seq<'d: 'a, 'a>() -> <&'a () as Visitor<'d>>::Value {}
|
|
|
|
|
|
|
|
fn main() {}
|