diff options
| author | Max Baumann <max@bmn.dev> | 2022-03-18 14:45:48 +0100 |
|---|---|---|
| committer | Max Baumann <max@bmn.dev> | 2022-03-18 14:45:48 +0100 |
| commit | fd2c8601711554d31f0c836d5aa96623a25e63b6 (patch) | |
| tree | 8eeda618b137ee51b5111ae99e53cdab0c1a3be1 | |
| parent | 3c4192f3e9d2983c0fa2fc30fa76f63cb62b06fa (diff) | |
| download | rust-fd2c8601711554d31f0c836d5aa96623a25e63b6.tar.gz rust-fd2c8601711554d31f0c836d5aa96623a25e63b6.zip | |
feat: add comment
| -rw-r--r-- | tests/ui/or_then_unwrap.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/or_then_unwrap.rs b/tests/ui/or_then_unwrap.rs index cbc3c387da0..8d7e50ad405 100644 --- a/tests/ui/or_then_unwrap.rs +++ b/tests/ui/or_then_unwrap.rs @@ -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 |
