2018-05-26 05:47:38 -05:00
|
|
|
// Check that lifetime bounds get checked the right way around with NLL enabled.
|
|
|
|
|
2019-09-01 16:30:19 -05:00
|
|
|
// check-pass
|
2018-05-26 05:47:38 -05: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() {}
|