]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/normalization-bounds-error.rs
Rollup merge of #106397 - compiler-errors:new-solver-impl-wc, r=lcnr
[rust.git] / tests / 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() {}