Files
Notes/notes-service/vendor/thiserror/tests/ui/raw-identifier.rs
T
2026-08-01 16:11:49 +03:00

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}");
}