mirror of
https://github.com/rust-lang/rust.git
synced 2026-02-15 01:44:19 +00:00
13 lines
151 B
Rust
13 lines
151 B
Rust
trait Add<Rhs=Self> {
|
|
type Output;
|
|
}
|
|
|
|
impl Add for i32 {
|
|
type Output = i32;
|
|
}
|
|
|
|
fn main() {
|
|
let x = &10 as &dyn Add;
|
|
//~^ ERROR E0191
|
|
}
|