blob: 1ff6b4d628c8b317785321981b14ad0121c86822 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// compile-flags: -Z mir-opt-level=3
// build-pass
// This used to ICE due to the inling pass not examining projections
// for references to locals
pub fn parse(version: ()) {
p(&b'.', b"0");
}
#[inline(always)]
fn p(byte: &u8, s: &[u8]) {
!(s[0] == *byte);
}
fn main() {
parse(());
}
|