]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/unreachable-format-arg.rs
Rollup merge of #107127 - uweigand:s390x-sanitizer, r=Mark-Simulacrum
[rust.git] / tests / ui / macros / unreachable-format-arg.rs
1 // run-fail
2 // ignore-emscripten no processes
3
4 // revisions: edition_2015 edition_2021
5 // [edition_2015]edition:2015
6 // [edition_2021]edition:2021
7 // [edition_2015]error-pattern:internal error: entered unreachable code: x is {x}
8 // [edition_2021]error-pattern:internal error: entered unreachable code: x is 5
9
10 #![allow(non_fmt_panics)]
11
12 fn main() {
13     let x = 5;
14     unreachable!("x is {x}");
15 }