about summary refs log tree commit diff
path: root/tests/ui/issues/issue-21950.rs
blob: 7a85ac91bca0f9137af725205eace9640152c19a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
trait Add<Rhs=Self> {
    type Output;
}

impl Add for i32 {
    type Output = i32;
}

fn main() {
    let x = &10 as &dyn Add;
    //~^ ERROR E0191
}