fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
525 B14 linesraw
1error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
2  --> $DIR/E0687_where.rs:4:31
3   |
4LL | fn bar<F>(x: &F) where F: Fn(&'a u32) {}
5   |                               ^^ in-band lifetime definition
6
7error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
8  --> $DIR/E0687_where.rs:6:21
9   |
10LL | fn baz(x: &impl Fn(&'a u32)) {}
11   |                     ^^ in-band lifetime definition
12
13error: aborting due to 2 previous errors
14