]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/associated-types-overridden-binding.rs
Rollup merge of #107531 - GuillaumeGomez:inline-images-in-css, r=notriddle
[rust.git] / tests / ui / associated-types / associated-types-overridden-binding.rs
1 #![feature(trait_alias)]
2
3 trait Foo: Iterator<Item = i32> {}
4 trait Bar: Foo<Item = u32> {} //~ ERROR type annotations needed
5
6 trait I32Iterator = Iterator<Item = i32>;
7 trait U32Iterator = I32Iterator<Item = u32>; //~ ERROR type annotations needed
8
9 fn main() {
10     let _: &dyn I32Iterator<Item = u32>;
11 }