2023-10-16 12:36:39 -05:00
|
|
|
// skip-filecheck
|
2023-06-08 02:18:34 -05:00
|
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
2024-04-20 06:19:34 -05:00
|
|
|
//@ test-mir-pass: DeduplicateBlocks
|
2022-08-02 19:44:25 -05:00
|
|
|
|
2020-10-04 08:52:14 -05:00
|
|
|
// 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");
|
|
|
|
}
|