summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0308-2.rs
blob: 157f992da994033d36abf51c84e6c589d643588b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
trait DynEq {}

impl<'a> PartialEq for &'a (dyn DynEq + 'static) {
    fn eq(&self, _other: &Self) -> bool {
        true
    }
}

impl Eq for &dyn DynEq {} //~ ERROR E0308

fn main() {
}