add test for block comment and add note to description

This commit is contained in:
y21 2023-06-19 20:07:31 +02:00
parent d7e723441e
commit 2e856fa99b
3 changed files with 33 additions and 0 deletions

View file

@ -237,4 +237,18 @@ mod issue8634 {
},
}
}
fn block_comment(x: Result<i32, SomeError>) {
match x {
Ok(y) => {
println!("Yay! {y}");
},
Err(_) => {
/*
let's make sure that this also
does not lint block comments.
*/
},
}
}
}

View file

@ -295,4 +295,18 @@ mod issue8634 {
},
}
}
fn block_comment(x: Result<i32, SomeError>) {
match x {
Ok(y) => {
println!("Yay! {y}");
},
Err(_) => {
/*
let's make sure that this also
does not lint block comments.
*/
},
}
}
}