summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-type-bounds/elision.rs
blob: d00def571666bdaf38857f9dea57b551b6dcb8fd (plain)
1
2
3
4
5
6
7
8
9
#![feature(associated_type_bounds)]
#![feature(anonymous_lifetime_in_impl_trait)]

// The same thing should happen for constraints in dyn trait.
fn f(x: &mut dyn Iterator<Item: Iterator<Item = &'_ ()>>) -> Option<&'_ ()> { x.next() }
//~^ ERROR missing lifetime specifier
//~| ERROR mismatched types

fn main() {}