summaryrefslogtreecommitdiffstats
path: root/src/test/ui/nll/normalization-bounds.rs
blob: bb6d981e0133f2ca443469bbd849fb61494cb958 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Check that lifetime bounds get checked the right way around with NLL enabled.

// check-pass

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() {}