]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/issue-22560.rs
Merge commit 'e329249b6a3a98830d860c74c8234a8dd9407436' into clippyup
[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() { }