mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
18 lines
300 B
Rust
18 lines
300 B
Rust
// 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(());
|
|
}
|