]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/const_let.stderr
Rollup merge of #62257 - RalfJung:miri-c-str, r=estebank
[rust.git] / src / test / ui / consts / const-eval / const_let.stderr
1 error[E0019]: constant contains unimplemented expression type
2   --> $DIR/const_let.rs:13:55
3    |
4 LL | const Y: FakeNeedsDrop = { let mut x = FakeNeedsDrop; x = FakeNeedsDrop; x };
5    |                                                       ^
6
7 error[E0019]: constant contains unimplemented expression type
8   --> $DIR/const_let.rs:17:35
9    |
10 LL | const Z: () = { let mut x = None; x = Some(FakeNeedsDrop); };
11    |                                   ^
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0019`.