summary refs log tree commit diff
path: root/src/test/ui/nll/normalization-bounds-error.rs
blob: d6610e158236c3afcfd85db176695a09573c12d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Check that we error when a bound from the impl is not satisfied when
// normalizing an associated type.

#![feature(nll)]
trait Visitor<'d> {
    type Value;
}

impl<'a, 'd: 'a> Visitor<'d> for &'a () {
    type Value = ();
}

fn visit_seq<'d, 'a: 'd>() -> <&'a () as Visitor<'d>>::Value {}
//~^ ERROR

fn main() {}