mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
feat: add comment
This commit is contained in:
parent
3c4192f3e9
commit
fd2c860171
@ -28,6 +28,7 @@ fn main() {
|
||||
let instance = SomeStruct {};
|
||||
let _ = instance.or(Some(SomeStruct {})).unwrap(); // should not trigger lint
|
||||
|
||||
// or takes no argument
|
||||
let instance = SomeOtherStruct {};
|
||||
let _ = instance.or().unwrap(); // should not trigger lint and should not panic
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user