summary refs log tree commit diff
path: root/src/test/ui/consts/const-eval/const_let.stderr
blob: 00de97e6fb3a027a3a119dc0ace1d746171a82d3 (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:13:55
   |
LL | const Y: FakeNeedsDrop = { let mut x = FakeNeedsDrop; x = FakeNeedsDrop; x };
   |                                                       ^

error[E0019]: constant contains unimplemented expression type
  --> $DIR/const_let.rs:17: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`.