]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-overridden-binding-2.rs
Rollup merge of #57859 - GuillaumeGomez:fix-background, r=QuietMisdreavus
[rust.git] / src / test / ui / associated-types / associated-types-overridden-binding-2.rs
1 #![feature(trait_alias)]
2
3 trait I32Iterator = Iterator<Item = i32>;
4
5 fn main() {
6     let _: &I32Iterator<Item = u32> = &vec![42].into_iter();
7     //~^ ERROR type mismatch
8 }