summaryrefslogtreecommitdiffstats
path: root/tests/ui/higher-ranked/trait-bounds/hang-on-deeply-nested-dyn.rs
blob: d34b7a29623cfcfa30ee313b3d1779ecf493ebcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// normalize-stderr-test: "long-type-\d+" -> "long-type-hash"

fn id(
    f: &dyn Fn(u32),
) -> &dyn Fn(
    &dyn Fn(
        &dyn Fn(
            &dyn Fn(&dyn Fn(&dyn Fn(&dyn Fn(&dyn Fn(&dyn Fn(&dyn Fn(&dyn Fn(&dyn Fn(u32))))))))),
        ),
    ),
) {
    f
    //~^ ERROR mismatched types
}

fn main() {}