]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/issue-22560.rs
Add 'compiler/rustc_smir/' from commit '9abcb5c7b574cf316eb23d3f469187bb86ba3019'
[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() { }