summaryrefslogtreecommitdiffstats
path: root/third_party/rust/anyhow/tests/ui/empty-ensure.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/anyhow/tests/ui/empty-ensure.rs')
-rw-r--r--third_party/rust/anyhow/tests/ui/empty-ensure.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/rust/anyhow/tests/ui/empty-ensure.rs b/third_party/rust/anyhow/tests/ui/empty-ensure.rs
new file mode 100644
index 0000000000..139b743bbf
--- /dev/null
+++ b/third_party/rust/anyhow/tests/ui/empty-ensure.rs
@@ -0,0 +1,6 @@
+use anyhow::{ensure, Result};
+
+fn main() -> Result<()> {
+ ensure!();
+ Ok(())
+}