fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0631]: type mismatch in closure arguments 2 --> $DIR/anonymous-higher-ranked-lifetime.rs:2:5 3 | 4LL | f1(|_: (), _: ()| {}); 5 | ^^ -------------- found signature of `fn((), ()) -> _` 6 | | 7 | expected signature of `for<'r, 's> fn(&'r (), &'s ()) -> _` 8... 9LL | fn f1<F>(_: F) where F: Fn(&(), &()) {} 10 | -- ------------ required by this bound in `f1` 11 12error[E0631]: type mismatch in closure arguments 13 --> $DIR/anonymous-higher-ranked-lifetime.rs:2:5 14 | 15LL | f1(|_: (), _: ()| {}); 16 | ^^ -------------- found signature of `fn((), ()) -> _` 17 | | 18 | expected signature of `fn(&(), &()) -> _` 19... 20LL | fn f1<F>(_: F) where F: Fn(&(), &()) {} 21 | -- ------------ required by this bound in `f1` 22 23error[E0631]: type mismatch in closure arguments 24 --> $DIR/anonymous-higher-ranked-lifetime.rs:4:5 25 | 26LL | f2(|_: (), _: ()| {}); 27 | ^^ -------------- found signature of `fn((), ()) -> _` 28 | | 29 | expected signature of `for<'a, 'r> fn(&'a (), &'r ()) -> _` 30... 31LL | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {} 32 | -- ----------------------- required by this bound in `f2` 33 34error[E0631]: type mismatch in closure arguments 35 --> $DIR/anonymous-higher-ranked-lifetime.rs:4:5 36 | 37LL | f2(|_: (), _: ()| {}); 38 | ^^ -------------- found signature of `fn((), ()) -> _` 39 | | 40 | expected signature of `fn(&'a (), &()) -> _` 41... 42LL | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {} 43 | -- --------------- required by this bound in `f2` 44 45error[E0631]: type mismatch in closure arguments 46 --> $DIR/anonymous-higher-ranked-lifetime.rs:6:5 47 | 48LL | f3(|_: (), _: ()| {}); 49 | ^^ -------------- found signature of `fn((), ()) -> _` 50 | | 51 | expected signature of `for<'r> fn(&(), &'r ()) -> _` 52... 53LL | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {} 54 | -- --------------- required by this bound in `f3` 55 56error[E0631]: type mismatch in closure arguments 57 --> $DIR/anonymous-higher-ranked-lifetime.rs:6:5 58 | 59LL | f3(|_: (), _: ()| {}); 60 | ^^ -------------- found signature of `fn((), ()) -> _` 61 | | 62 | expected signature of `fn(&(), &()) -> _` 63... 64LL | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {} 65 | -- --------------- required by this bound in `f3` 66 67error[E0631]: type mismatch in closure arguments 68 --> $DIR/anonymous-higher-ranked-lifetime.rs:8:5 69 | 70LL | f4(|_: (), _: ()| {}); 71 | ^^ -------------- found signature of `fn((), ()) -> _` 72 | | 73 | expected signature of `for<'s, 'r> fn(&'s (), &'r ()) -> _` 74... 75LL | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {} 76 | -- ----------------------- required by this bound in `f4` 77 78error[E0631]: type mismatch in closure arguments 79 --> $DIR/anonymous-higher-ranked-lifetime.rs:8:5 80 | 81LL | f4(|_: (), _: ()| {}); 82 | ^^ -------------- found signature of `fn((), ()) -> _` 83 | | 84 | expected signature of `fn(&(), &'r ()) -> _` 85... 86LL | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {} 87 | -- --------------- required by this bound in `f4` 88 89error[E0631]: type mismatch in closure arguments 90 --> $DIR/anonymous-higher-ranked-lifetime.rs:10:5 91 | 92LL | f5(|_: (), _: ()| {}); 93 | ^^ -------------- found signature of `fn((), ()) -> _` 94 | | 95 | expected signature of `for<'r> fn(&'r (), &'r ()) -> _` 96... 97LL | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {} 98 | -- -------------------------- required by this bound in `f5` 99 100error[E0631]: type mismatch in closure arguments 101 --> $DIR/anonymous-higher-ranked-lifetime.rs:10:5 102 | 103LL | f5(|_: (), _: ()| {}); 104 | ^^ -------------- found signature of `fn((), ()) -> _` 105 | | 106 | expected signature of `fn(&'r (), &'r ()) -> _` 107... 108LL | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {} 109 | -- ------------------ required by this bound in `f5` 110 111error[E0631]: type mismatch in closure arguments 112 --> $DIR/anonymous-higher-ranked-lifetime.rs:12:5 113 | 114LL | g1(|_: (), _: ()| {}); 115 | ^^ -------------- found signature of `fn((), ()) -> _` 116 | | 117 | expected signature of `for<'r> fn(&'r (), std::boxed::Box<(dyn for<'s> std::ops::Fn(&'s ()) + 'static)>) -> _` 118... 119LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {} 120 | -- ------------------------- required by this bound in `g1` 121 122error[E0631]: type mismatch in closure arguments 123 --> $DIR/anonymous-higher-ranked-lifetime.rs:12:5 124 | 125LL | g1(|_: (), _: ()| {}); 126 | ^^ -------------- found signature of `fn((), ()) -> _` 127 | | 128 | expected signature of `fn(&(), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>) -> _` 129... 130LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {} 131 | -- ------------------------- required by this bound in `g1` 132 133error[E0631]: type mismatch in closure arguments 134 --> $DIR/anonymous-higher-ranked-lifetime.rs:14:5 135 | 136LL | g2(|_: (), _: ()| {}); 137 | ^^ -------------- found signature of `fn((), ()) -> _` 138 | | 139 | expected signature of `for<'r> fn(&'r (), for<'s> fn(&'s ())) -> _` 140... 141LL | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {} 142 | -- ---------------- required by this bound in `g2` 143 144error[E0631]: type mismatch in closure arguments 145 --> $DIR/anonymous-higher-ranked-lifetime.rs:14:5 146 | 147LL | g2(|_: (), _: ()| {}); 148 | ^^ -------------- found signature of `fn((), ()) -> _` 149 | | 150 | expected signature of `fn(&(), for<'r> fn(&'r ())) -> _` 151... 152LL | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {} 153 | -- ---------------- required by this bound in `g2` 154 155error[E0631]: type mismatch in closure arguments 156 --> $DIR/anonymous-higher-ranked-lifetime.rs:16:5 157 | 158LL | g3(|_: (), _: ()| {}); 159 | ^^ -------------- found signature of `fn((), ()) -> _` 160 | | 161 | expected signature of `for<'s> fn(&'s (), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>) -> _` 162... 163LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {} 164 | -- ------------------------------------ required by this bound in `g3` 165 166error[E0631]: type mismatch in closure arguments 167 --> $DIR/anonymous-higher-ranked-lifetime.rs:16:5 168 | 169LL | g3(|_: (), _: ()| {}); 170 | ^^ -------------- found signature of `fn((), ()) -> _` 171 | | 172 | expected signature of `fn(&'s (), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>) -> _` 173... 174LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {} 175 | -- ---------------------------- required by this bound in `g3` 176 177error[E0631]: type mismatch in closure arguments 178 --> $DIR/anonymous-higher-ranked-lifetime.rs:18:5 179 | 180LL | g4(|_: (), _: ()| {}); 181 | ^^ -------------- found signature of `fn((), ()) -> _` 182 | | 183 | expected signature of `for<'s> fn(&'s (), for<'r> fn(&'r ())) -> _` 184... 185LL | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {} 186 | -- --------------------------- required by this bound in `g4` 187 188error[E0631]: type mismatch in closure arguments 189 --> $DIR/anonymous-higher-ranked-lifetime.rs:18:5 190 | 191LL | g4(|_: (), _: ()| {}); 192 | ^^ -------------- found signature of `fn((), ()) -> _` 193 | | 194 | expected signature of `fn(&(), for<'r> fn(&'r ())) -> _` 195... 196LL | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {} 197 | -- --------------------------- required by this bound in `g4` 198 199error[E0631]: type mismatch in closure arguments 200 --> $DIR/anonymous-higher-ranked-lifetime.rs:20:5 201 | 202LL | h1(|_: (), _: (), _: (), _: ()| {}); 203 | ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _` 204 | | 205 | expected signature of `for<'r, 's> fn(&'r (), std::boxed::Box<(dyn for<'t0> std::ops::Fn(&'t0 ()) + 'static)>, &'s (), for<'t0, 't1> fn(&'t0 (), &'t1 ())) -> _` 206... 207LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {} 208 | -- -------------------------------------------- required by this bound in `h1` 209 210error[E0631]: type mismatch in closure arguments 211 --> $DIR/anonymous-higher-ranked-lifetime.rs:20:5 212 | 213LL | h1(|_: (), _: (), _: (), _: ()| {}); 214 | ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _` 215 | | 216 | expected signature of `fn(&(), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>, &(), for<'r, 's> fn(&'r (), &'s ())) -> _` 217... 218LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {} 219 | -- -------------------------------------------- required by this bound in `h1` 220 221error[E0631]: type mismatch in closure arguments 222 --> $DIR/anonymous-higher-ranked-lifetime.rs:22:5 223 | 224LL | h2(|_: (), _: (), _: (), _: ()| {}); 225 | ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _` 226 | | 227 | expected signature of `for<'r, 't0> fn(&'r (), std::boxed::Box<(dyn for<'s> std::ops::Fn(&'s ()) + 'static)>, &'t0 (), for<'s, 't1> fn(&'s (), &'t1 ())) -> _` 228... 229LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {} 230 | -- --------------------------------------------------------- required by this bound in `h2` 231 232error[E0631]: type mismatch in closure arguments 233 --> $DIR/anonymous-higher-ranked-lifetime.rs:22:5 234 | 235LL | h2(|_: (), _: (), _: (), _: ()| {}); 236 | ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _` 237 | | 238 | expected signature of `fn(&(), std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r ()) + 'static)>, &'t0 (), for<'r, 's> fn(&'r (), &'s ())) -> _` 239... 240LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {} 241 | -- ------------------------------------------------ required by this bound in `h2` 242 243error: aborting due to 22 previous errors 244