Closed
Description
Code
fn main() {
let v = vec![0123456789];
let mid = v.len() / 2;
let s = &v;
match s {
[a..mid, mid, mid..b] => {}
[..] => {}
}
}
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.57.0 (f1edd04 2021-11-29) running on x86_64-unknown-linux-gnu
note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type bin
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
Meta
rustc --version --verbose
:
<version>
Error output
<output>
Backtrace
<backtrace>