thread 'rustc' panicked at compiler/rustc_const_eval/src/transform/validate.rs:LL:CC: broken MIR in Item(DefId) (after phase change to runtime-optimized) at bb0[1]: (*(_2.0: *mut i32)), has deref at the wrong place stack backtrace: error: the compiler unexpectedly panicked. this is a bug. query stack during panic: #0 [optimized_mir] optimizing MIR for `main` end of query stack Miri caused an ICE during evaluation. Here's the interpreter backtrace at the time of the panic: --> RUSTLIB/core/src/ops/function.rs:LL:CC | LL | extern "rust-call" fn call_once(self, args: Args) -> Self::Output; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |