]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-811.rs
Auto merge of #83342 - Count-Count:win-console-incomplete-utf8, r=m-ou-se
[rust.git] / src / tools / rustfmt / tests / target / issue-811.rs
1 trait FooTrait<T>: Sized {
2     type Bar: BarTrait<T>;
3 }
4
5 trait BarTrait<T>: Sized {
6     type Baz;
7     fn foo();
8 }
9
10 type Foo<T: FooTrait> = <<T as FooTrait<U>>::Bar as BarTrait<U>>::Baz;
11 type Bar<T: BarTrait> = <T as BarTrait<U>>::Baz;
12
13 fn some_func<T: FooTrait<U>, U>() {
14     <<T as FooTrait<U>>::Bar as BarTrait<U>>::foo();
15 }
16
17 fn some_func<T: BarTrait<U>>() {
18     <T as BarTrait<U>>::foo();
19 }