mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-24 08:22:25 +00:00
29 lines
367 B
Rust
29 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(()) });
|
|
}
|