]> git.lizzy.rs Git - rust.git/blob - tests/ui/unpretty-expr-fn-arg.rs
Auto merge of #106812 - oli-obk:output_filenames, r=petrochenkov
[rust.git] / tests / ui / unpretty-expr-fn-arg.rs
1 // Regression test for the ICE described in #82328. The pretty-printer for
2 // `-Zunpretty=hir,typed` would previously retrieve type-checking results
3 // when entering a body, which means that type information was not available
4 // for expressions occurring in function signatures, as in the `foo` example
5 // below, leading to an ICE.
6
7 // check-pass
8 // compile-flags: -Zunpretty=hir,typed
9 #![allow(dead_code)]
10
11 fn main() {}
12
13 fn foo(-128..=127: i8) {}