derive-error 0.0.4

Derive macro for Error using macros 1.1
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate rspec;
#[macro_use]
extern crate derive_error;

#[test]
fn error_behaviour() {
    rspec::run(&rspec::describe("the implementation", (), |ctx| {
        ctx.it("should be able to derive from unit structs", |_| {
            #[derive(Debug, Error)]
            pub enum _Error {
                Msg
            }
        });
    }));
}