summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/issue-108155.rs
blob: 4ae0cbd92ff162e724540806057ff930d3f0b9ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// check-pass
// check that `deref_into_dyn_supertrait` doesn't cause ICE by eagerly converting
// a cancelled lint

#![allow(deref_into_dyn_supertrait)]

trait Trait {}
impl std::ops::Deref for dyn Trait + Send + Sync {
    type Target = dyn Trait;
    fn deref(&self) -> &Self::Target {
        self
    }
}

fn main() {}