diff --git a/fish-rust/src/common.rs b/fish-rust/src/common.rs index 4b1c2fd29..f49458a7d 100644 --- a/fish-rust/src/common.rs +++ b/fish-rust/src/common.rs @@ -2108,6 +2108,14 @@ impl ToCString for &[u8] { } } +// test-only +#[allow(unused_macros)] +macro_rules! err { + ($format:expr $(, $args:expr)* $(,)? ) => { + println!($format $(, $args )*); + } +} + #[allow(unused_macros)] macro_rules! fwprintf { ($fd:expr, $format:literal $(, $arg:expr)*) => {