]> git.proxmox.com Git - rustc.git/blob - tests/ui/regions/issue-102374.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / regions / issue-102374.rs
1 // normalize-stderr-test: "long-type-\d+" -> "long-type-hash"
2 use std::cell::Cell;
3
4 #[rustfmt::skip]
5 fn f(
6 f: for<'a, 'b, 'c, 'd, 'e, 'f, 'g,
7 'h, 'i, 'j, 'k, 'l, 'm, 'n,
8 'o, 'p, 'q, 'r, 's, 't, 'u,
9 'v, 'w, 'x, 'y, 'z, 'z0>
10 fn(Cell<(& i32, &'a i32, &'b i32, &'c i32, &'d i32,
11 &'e i32, &'f i32, &'g i32, &'h i32, &'i i32,
12 &'j i32, &'k i32, &'l i32, &'m i32, &'n i32,
13 &'o i32, &'p i32, &'q i32, &'r i32, &'s i32,
14 &'t i32, &'u i32, &'v i32, &'w i32, &'x i32,
15 &'y i32, &'z i32, &'z0 i32)>),
16 ) -> i32 {
17 f
18 //~^ ERROR mismatched types
19 }
20
21 fn main() {}