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