]>
Commit | Line | Data |
---|---|---|
cdc7bbd5 | 1 | error: moving 10024 bytes |
94222f64 | 2 | --> $DIR/large_moves.rs:12:13 |
cdc7bbd5 XL |
3 | | |
4 | LL | let x = async { | |
5 | | _____________^ | |
6 | LL | | let y = [0; 9999]; | |
7 | LL | | dbg!(y); | |
8 | LL | | thing(&y).await; | |
9 | LL | | dbg!(y); | |
10 | LL | | }; | |
11 | | |_____^ value moved from here | |
12 | | | |
13 | note: the lint level is defined here | |
14 | --> $DIR/large_moves.rs:1:9 | |
15 | | | |
16 | LL | #![deny(large_assignments)] | |
17 | | ^^^^^^^^^^^^^^^^^ | |
5e7ed085 | 18 | = note: The current maximum size is 1000, but it can be customized with the move_size_limit attribute: `#![move_size_limit = "..."]` |
cdc7bbd5 XL |
19 | |
20 | error: moving 10024 bytes | |
94222f64 | 21 | --> $DIR/large_moves.rs:18:14 |
cdc7bbd5 XL |
22 | | |
23 | LL | let z = (x, 42); | |
24 | | ^ value moved from here | |
5e7ed085 FG |
25 | | |
26 | = note: The current maximum size is 1000, but it can be customized with the move_size_limit attribute: `#![move_size_limit = "..."]` | |
cdc7bbd5 XL |
27 | |
28 | error: moving 10024 bytes | |
94222f64 | 29 | --> $DIR/large_moves.rs:18:13 |
cdc7bbd5 XL |
30 | | |
31 | LL | let z = (x, 42); | |
32 | | ^^^^^^^ value moved from here | |
5e7ed085 FG |
33 | | |
34 | = note: The current maximum size is 1000, but it can be customized with the move_size_limit attribute: `#![move_size_limit = "..."]` | |
cdc7bbd5 XL |
35 | |
36 | error: moving 10024 bytes | |
94222f64 | 37 | --> $DIR/large_moves.rs:20:13 |
cdc7bbd5 XL |
38 | | |
39 | LL | let a = z.0; | |
40 | | ^^^ value moved from here | |
5e7ed085 FG |
41 | | |
42 | = note: The current maximum size is 1000, but it can be customized with the move_size_limit attribute: `#![move_size_limit = "..."]` | |
cdc7bbd5 XL |
43 | |
44 | error: aborting due to 4 previous errors | |
45 |