fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
573 B17 linesraw
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#[prelude_import]
11use ::std::prelude::rust_2015::*;
12#[macro_use]
13extern crate std;
14
15fn main() ({ } as ())
16
17fn foo((-(128 as i8) as i8)...(127 as i8): i8) ({ } as ())