summary refs log tree commit diff
path: root/src/test/ui/const-eval/const_let.stderr
blob: 86e3482fda6b949b6c270ad4f48c4c005851e581 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0019]: constant contains unimplemented expression type
  --> $DIR/const_let.rs:25:55
   |
LL | const Y: FakeNeedsDrop = { let mut x = FakeNeedsDrop; x = FakeNeedsDrop; x };
   |                                                       ^

error[E0019]: constant contains unimplemented expression type
  --> $DIR/const_let.rs:29:35
   |
LL | const Z: () = { let mut x = None; x = Some(FakeNeedsDrop); };
   |                                   ^

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0019`.