fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
756 B21 linesraw
1error[E0596]: cannot borrow `tick1` as mutable, as it is not declared as mutable
2  --> $DIR/unboxed-closures-infer-fnmut-calling-fnmut-no-mut.rs:16:9
3   |
4LL |     let tick1 = || {
5   |         ----- help: consider changing this to be mutable: `mut tick1`
6...
7LL |         tick1();
8   |         ^^^^^ cannot borrow as mutable
9
10error[E0596]: cannot borrow `tick2` as mutable, as it is not declared as mutable
11  --> $DIR/unboxed-closures-infer-fnmut-calling-fnmut-no-mut.rs:19:5
12   |
13LL |     let tick2 = || {
14   |         ----- help: consider changing this to be mutable: `mut tick2`
15...
16LL |     tick2();
17   |     ^^^^^ cannot borrow as mutable
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0596`.