[go: up one dir, main page]

snafu 0.6.10

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::Snafu;

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

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