rust/tests/ui/higher-rank-trait-bounds/hang-on-deeply-nested-dyn.rs
2023-01-11 09:32:08 +00:00

17 lines
309 B
Rust

// 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() {}