]> git.proxmox.com Git - rustc.git/blob - tests/ui/associated-types/associated-types-overridden-binding.rs
New upstream version 1.68.2+dfsg1
[rustc.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 }