mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
16 lines
194 B
Rust
16 lines
194 B
Rust
trait Add<Rhs=Self> {
|
|
type Output;
|
|
}
|
|
|
|
trait Sub<Rhs=Self> {
|
|
type Output;
|
|
}
|
|
|
|
type Test = dyn Add + Sub;
|
|
//~^ ERROR E0393
|
|
//~| ERROR E0191
|
|
//~| ERROR E0393
|
|
//~| ERROR E0225
|
|
|
|
fn main() { }
|