fehler 1.0.0

A library for error-handling syntax in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![no_std]

use fehler::{throw, throws};

#[throws(i32)]
fn no_std_fn() {
    throw!(0);
}

#[test]
fn test_expansion() {
    assert_eq!(Err(0), no_std_fn());
}