mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
14 lines
172 B
Rust
14 lines
172 B
Rust
trait Add<Rhs=Self> {
|
|
type Output;
|
|
}
|
|
|
|
impl Add for i32 {
|
|
type Output = i32;
|
|
}
|
|
|
|
fn main() {
|
|
let x = &10 as &dyn Add;
|
|
//~^ ERROR E0393
|
|
//~| ERROR E0191
|
|
}
|