]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/issue-22560.rs
Merge commit '5ff7b632a95bac6955611d85040859128902c580' into sync-rustfmt-subtree
[rust.git] / src / test / ui / associated-types / issue-22560.rs
1 trait Add<Rhs=Self> {
2     type Output;
3 }
4
5 trait Sub<Rhs=Self> {
6     type Output;
7 }
8
9 type Test = dyn Add + Sub;
10 //~^ ERROR E0393
11 //~| ERROR E0191
12 //~| ERROR E0393
13 //~| ERROR E0225
14
15 fn main() { }