]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/deduplicate_blocks.rs
Rollup merge of #97373 - dimpolo:cell_dispatch_from_dyn, r=dtolnay
[rust.git] / tests / mir-opt / deduplicate_blocks.rs
1 // unit-test: DeduplicateBlocks
2
3 // EMIT_MIR deduplicate_blocks.is_line_doc_comment_2.DeduplicateBlocks.diff
4 pub const fn is_line_doc_comment_2(s: &str) -> bool {
5     match s.as_bytes() {
6         [b'/', b'/', b'/', b'/', ..] => false,
7         [b'/', b'/', b'/', ..] => true,
8         [b'/', b'/', b'!', ..] => true,
9         _ => false,
10     }
11 }
12
13 fn main() {
14     is_line_doc_comment_2("asd");
15 }