1 error[E0493]: destructors cannot be evaluated at compile-time
2 --> $DIR/const_let.rs:16:32
4 LL | const Y: FakeNeedsDrop = { let mut x = FakeNeedsDrop; x = FakeNeedsDrop; x };
5 | ^^^^^ - value is dropped here
7 | constants cannot evaluate destructors
9 error[E0493]: destructors cannot be evaluated at compile-time
10 --> $DIR/const_let.rs:20:33
12 LL | const Y2: FakeNeedsDrop = { let mut x; x = FakeNeedsDrop; x = FakeNeedsDrop; x };
13 | ^^^^^ - value is dropped here
15 | constants cannot evaluate destructors
17 error[E0493]: destructors cannot be evaluated at compile-time
18 --> $DIR/const_let.rs:24:21
20 LL | const Z: () = { let mut x = None; x = Some(FakeNeedsDrop); };
21 | ^^^^^ - value is dropped here
23 | constants cannot evaluate destructors
25 error[E0493]: destructors cannot be evaluated at compile-time
26 --> $DIR/const_let.rs:28:22
28 LL | const Z2: () = { let mut x; x = None; x = Some(FakeNeedsDrop); };
29 | ^^^^^ - value is dropped here
31 | constants cannot evaluate destructors
33 error: aborting due to 4 previous errors
35 For more information about this error, try `rustc --explain E0493`.