mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 20:06:38 +00:00
18 lines
451 B
Rust
18 lines
451 B
Rust
// skip-filecheck
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
|
//@ test-mir-pass: DeduplicateBlocks
|
|
|
|
// EMIT_MIR deduplicate_blocks.is_line_doc_comment_2.DeduplicateBlocks.diff
|
|
pub const fn is_line_doc_comment_2(s: &str) -> bool {
|
|
match s.as_bytes() {
|
|
[b'/', b'/', b'/', b'/', ..] => false,
|
|
[b'/', b'/', b'/', ..] => true,
|
|
[b'/', b'/', b'!', ..] => true,
|
|
_ => false,
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
is_line_doc_comment_2("asd");
|
|
}
|