We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c4192f commit fd2c860Copy full SHA for fd2c860
tests/ui/or_then_unwrap.rs
@@ -28,6 +28,7 @@ fn main() {
28
let instance = SomeStruct {};
29
let _ = instance.or(Some(SomeStruct {})).unwrap(); // should not trigger lint
30
31
+ // or takes no argument
32
let instance = SomeOtherStruct {};
33
let _ = instance.or().unwrap(); // should not trigger lint and should not panic
34
0 commit comments