fork/rust

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

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

1.39.0
935 B26 linesraw
1error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
2  --> $DIR/E0687.rs:4:15
3   |
4LL | fn foo(x: 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.rs:6:16
9   |
10LL | fn bar(x: &Fn(&'a u32)) {}
11   |                ^^ in-band lifetime definition
12
13error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
14  --> $DIR/E0687.rs:8:15
15   |
16LL | fn baz(x: fn(&'a u32), y: &'a u32) {}
17   |               ^^ in-band lifetime definition
18
19error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
20  --> $DIR/E0687.rs:13:26
21   |
22LL |     fn bar(&self, x: fn(&'a u32)) {}
23   |                          ^^ in-band lifetime definition
24
25error: aborting due to 4 previous errors
26