]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/normalization-bounds-error.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / nll / normalization-bounds-error.rs
1 // Check that we error when a bound from the impl is not satisfied when
2 // normalizing an associated type.
3
4 trait Visitor<'d> {
5     type Value;
6 }
7
8 impl<'a, 'd: 'a> Visitor<'d> for &'a () {
9     type Value = ();
10 }
11
12 fn visit_seq<'d, 'a: 'd>() -> <&'a () as Visitor<'d>>::Value {}
13 //~^ ERROR
14
15 fn main() {}