2019-12-13 11:37:31 -08:00
|
|
|
trait Add<Rhs=Self> {
|
|
|
|
|
type Output;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl Add for i32 {
|
|
|
|
|
type Output = i32;
|
|
|
|
|
}
|
2015-04-10 16:12:54 +10:00
|
|
|
|
|
|
|
|
fn main() {
|
2019-12-13 11:37:31 -08:00
|
|
|
let x = &10 as &dyn Add;
|
2024-11-30 02:47:40 +00:00
|
|
|
//~^ ERROR E0191
|
2015-04-10 16:12:54 +10:00
|
|
|
}
|