mirror of
https://jturnerusa.dev/cgit/gentoo-utils/
synced 2025-12-02 19:18:35 -06:00
13 lines
193 B
Rust
13 lines
193 B
Rust
use thiserror::Error;
|
|
|
|
#[derive(Error, Debug)]
|
|
#[error("error: {r#fn}")]
|
|
pub struct Error {
|
|
r#fn: &'static str,
|
|
}
|
|
|
|
fn main() {
|
|
let r#fn = "...";
|
|
let _ = format!("error: {r#fn}");
|
|
}
|