summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-type-bounds/elision.rs
blob: 4a533939931b2c7c7d4fc0ad951ccab0e2dedcb2 (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 constaints in dyn trait.
fn f(x: &mut dyn Iterator<Item: Iterator<Item = &'_ ()>>) -> Option<&'_ ()> { x.next() }
//~^ ERROR missing lifetime specifier
//~| ERROR mismatched types

fn main() {}