]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/issue-22560.rs
Rollup merge of #80543 - LeSeulArtichaut:notify-close, r=spastorino
[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() { }