rust/tests/ui/issues/issue-21950.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
172 B
Rust
Raw Normal View History

2019-12-13 19:37:31 +00:00
trait Add<Rhs=Self> {
type Output;
}
impl Add for i32 {
type Output = i32;
}
fn main() {
2019-12-13 19:37:31 +00:00
let x = &10 as &dyn Add;
//~^ ERROR E0393
//~| ERROR E0191
}