snafu icon indicating copy to clipboard operation
snafu copied to clipboard

`context` and `context(true)` are treated as `context(false)`

Open shepmaster opened this issue 11 months ago • 0 comments

Both of these should be compile-time errors.

#[derive(Debug, Snafu)]
enum Error {
    #[snafu(context(true))]
    Alpha
}
#[derive(Debug, Snafu)]
enum Error {
    #[snafu(context)]
    Alpha
}

shepmaster avatar May 12 '25 20:05 shepmaster