miette icon indicating copy to clipboard operation
miette copied to clipboard

`miette!` does not support capturing names in the current scope

Open gifnksm opened this issue 2 years ago • 0 comments

miette! does not support format_args_capture feature.

Source

use miette::{miette, Result};

fn main() -> Result<()> {
    let x = 123;
    return Err(miette!("{x}"));
}

Expected output

Error:
  × 123

Actual output

Error:
  × {x}

gifnksm avatar Sep 01 '22 11:09 gifnksm