Esteban Küber
8df93e6966
Tweak spans when encountering multiline initializer in move error
...
```
error[E0507]: cannot move out of `f`, a captured variable in an `FnMut` closure
--> $DIR/borrowck-call-is-borrow-issue-12224.rs:57:13
|
LL | let mut f = move |g: Box<dyn FnMut(isize)>, b: isize| {
| ----- captured outer variable
...
LL | f(Box::new(|a| {
| --- captured by this `FnMut` closure
LL |
LL | foo(f);
| ^ move occurs because `f` has type `{closure@$DIR/borrowck-call-is-borrow-issue-12224.rs:52:17: 52:58}`, which does not implement the `Copy` trait
```
instead of
```
error[E0507]: cannot move out of `f`, a captured variable in an `FnMut` closure
--> $DIR/borrowck-call-is-borrow-issue-12224.rs:57:13
|
LL | let mut f = move |g: Box<dyn FnMut(isize)>, b: isize| {
| _________-----___-
| | |
| | captured outer variable
LL | | let _ = s.len();
LL | | };
| |_____- move occurs because `f` has type `{closure@$DIR/borrowck-call-is-borrow-issue-12224.rs:52:17: 52:58}`, which does not implement the `Copy` trait
LL | f(Box::new(|a| {
| --- captured by this `FnMut` closure
LL |
LL | foo(f);
| ^ `f` is moved here
```
2025-07-21 16:21:23 +00:00
..
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-07-10 20:09:26 +00:00
2023-01-11 09:32:08 +00:00
2023-05-05 22:40:05 +12:00
2023-01-11 09:32:08 +00:00
2025-07-21 16:21:23 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-17 02:52:43 +00:00
2023-07-10 20:09:26 +00:00
2023-01-11 09:32:08 +00:00
2023-07-10 20:09:26 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2024-02-22 17:29:25 +01:00
2024-02-22 17:29:25 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2024-07-18 20:08:38 +00:00
2025-06-05 09:20:19 +02:00
2025-06-05 09:20:19 +02:00
2025-06-05 09:19:31 +02:00
2023-01-15 19:46:20 +00:00
2023-01-11 09:32:08 +00:00
2023-01-15 19:46:20 +00:00
2023-01-11 09:32:08 +00:00
2023-01-15 19:46:20 +00:00
2025-06-05 09:19:31 +02:00
2023-01-15 19:46:20 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-03-08 00:00:18 +00:00
2025-03-14 19:50:03 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2025-07-15 09:21:27 +02:00
2025-07-15 09:21:27 +02:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2025-06-17 23:22:51 +02:00
2025-06-17 23:22:51 +02:00
2024-09-09 19:39:43 -07:00
2024-01-13 12:46:58 -05:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-07-10 20:09:26 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-02-08 08:10:43 +00:00
2024-02-08 08:10:43 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-01-15 19:46:20 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2024-12-13 15:40:37 +00:00
2023-01-11 09:32:08 +00:00
2023-01-15 19:46:20 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2025-02-05 10:36:32 -05:00
2024-03-07 14:26:31 +00:00
2025-02-10 20:21:39 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2025-02-10 20:21:39 +00:00
2023-01-11 09:32:08 +00:00
2023-05-08 03:36:30 +00:00
2024-02-08 08:10:43 +00:00
2024-02-08 08:10:43 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-08-01 18:53:42 +00:00
2025-01-23 06:01:36 +00:00
2025-06-11 15:30:15 +01:00
2025-06-11 15:30:15 +01:00
2024-01-29 17:43:07 +08:00
2024-01-29 17:43:07 +08:00
2024-02-16 20:02:50 +00:00
2025-06-22 10:58:25 +02:00
2023-01-11 09:32:08 +00:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-01-05 09:30:27 +00:00
2024-02-18 11:19:24 +03:00
2024-02-18 11:19:24 +03:00
2024-05-11 00:13:27 +08:00
2024-05-11 00:13:27 +08:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2025-02-21 00:41:17 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2024-09-22 13:55:06 -04:00
2024-02-16 20:02:50 +00:00
2024-05-21 20:16:39 +00:00
2023-01-11 09:32:08 +00:00
2023-07-10 20:09:26 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2025-03-30 01:32:21 +03:00
2023-01-15 19:46:20 +00:00
2023-01-11 09:32:08 +00:00
2024-06-20 04:25:17 +00:00
2025-03-30 01:32:21 +03:00
2025-03-30 01:32:21 +03:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-07-10 20:09:26 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2024-04-24 22:21:13 +00:00
2023-01-11 09:32:08 +00:00
2023-04-21 21:34:59 +00:00
2023-08-18 14:46:20 +02:00
2024-07-26 14:41:56 -04:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-04-29 15:02:12 +08:00
2024-04-29 15:02:12 +08:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2024-02-16 20:02:50 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-15 19:46:20 +00:00
2025-06-05 09:19:31 +02:00
2023-01-15 19:46:20 +00:00
2025-06-05 09:19:31 +02:00
2025-06-05 09:19:31 +02:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00