about summary refs log tree commit diff
path: root/tests/ui/associated-types/associated-types-overridden-binding-2.rs
blob: 247724eaaf112f91f2b0996a195a273b066730b0 (plain)
1
2
3
4
5
6
7
8
#![feature(trait_alias)]

trait I32Iterator = Iterator<Item = i32>;

fn main() {
    let _: &dyn I32Iterator<Item = u32> = &vec![42].into_iter();
    //~^ ERROR conflicting associated type bounds
}