snafu 0.9.0

An ergonomic error handling library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// There are also sad-path tests

pub mod inner {
    use snafu::prelude::*;

    #[derive(Debug, Snafu)]
    #[snafu(visibility(pub(crate)))]
    pub(crate) struct Error;
}

#[test]
fn can_set_visibility() {
    let _ = inner::Snafu.build();
}