summaryrefslogtreecommitdiffstats
path: root/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-76956.rs
blob: 583470080a2fc8cd6cbe74cc8be806fda4ce637d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// check-pass

use std::ops::Deref;

struct Data {
    boxed: Box<&'static i32>
}

impl Data {
    fn use_data(&self, user: impl for <'a> FnOnce(<Box<&'a i32> as Deref>::Target)) {
        user(*self.boxed)
    }
}

fn main() {}