DEBSOURCES
Skip Quicknav
sources / rust-fehler / 1.0.0-1 / tests / no_std.rs
12345678910111213
#![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()); }