rust/tests/ui/higher-ranked/trait-bounds/hang-on-deeply-nested-dyn.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
309 B
Rust
Raw Normal View History

2022-12-05 22:42:06 -06:00
// 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() {}