fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.7 KiB35 linesraw
1error[E0493]: destructor of `FakeNeedsDrop` cannot be evaluated at compile-time
2  --> $DIR/const_let.rs:16:32
3   |
4LL | const Y: FakeNeedsDrop = { let mut x = FakeNeedsDrop; x = FakeNeedsDrop; x };
5   |                                ^^^^^                  - value is dropped here
6   |                                |
7   |                                the destructor for this type cannot be evaluated in constants
8
9error[E0493]: destructor of `FakeNeedsDrop` cannot be evaluated at compile-time
10  --> $DIR/const_let.rs:20:33
11   |
12LL | const Y2: FakeNeedsDrop = { let mut x; x = FakeNeedsDrop; x = FakeNeedsDrop; x };
13   |                                 ^^^^^                     - value is dropped here
14   |                                 |
15   |                                 the destructor for this type cannot be evaluated in constants
16
17error[E0493]: destructor of `Option<FakeNeedsDrop>` cannot be evaluated at compile-time
18  --> $DIR/const_let.rs:24:21
19   |
20LL | const Z: () = { let mut x = None; x = Some(FakeNeedsDrop); };
21   |                     ^^^^^                                  - value is dropped here
22   |                     |
23   |                     the destructor for this type cannot be evaluated in constants
24
25error[E0493]: destructor of `Option<FakeNeedsDrop>` cannot be evaluated at compile-time
26  --> $DIR/const_let.rs:28:22
27   |
28LL | const Z2: () = { let mut x; x = None; x = Some(FakeNeedsDrop); };
29   |                      ^^^^^                                     - value is dropped here
30   |                      |
31   |                      the destructor for this type cannot be evaluated in constants
32
33error: aborting due to 4 previous errors
34
35For more information about this error, try `rustc --explain E0493`.