]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/normalization-bounds.rs
Rollup merge of #105216 - GuillaumeGomez:rm-unused-gui-test, r=notriddle
[rust.git] / src / test / ui / nll / normalization-bounds.rs
1 // Check that lifetime bounds get checked the right way around with NLL enabled.
2
3 // check-pass
4
5 trait Visitor<'d> {
6     type Value;
7 }
8
9 impl<'a, 'd: 'a> Visitor<'d> for &'a () {
10     type Value = ();
11 }
12
13 fn visit_seq<'d: 'a, 'a>() -> <&'a () as Visitor<'d>>::Value {}
14
15 fn main() {}