add test for block comment and add note to description
This commit is contained in:
parent
d7e723441e
commit
2e856fa99b
3 changed files with 33 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*/
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue