1
0
Fork 0
firefox/third_party/rust/error-chain/tests/quick_main.rs
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

28 lines
367 B
Rust

#![allow(dead_code)]
#[macro_use]
extern crate error_chain;
error_chain!();
mod unit {
use super::*;
quick_main!(run);
fn run() -> Result<()> {
Ok(())
}
}
mod i32 {
use super::*;
quick_main!(run);
fn run() -> Result<i32> {
Ok(1)
}
}
mod closure {
use super::*;
quick_main!(|| -> Result<()> { Ok(()) });
}