File: no_std.rs

package info (click to toggle)
rust-fehler 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 132 kB
  • sloc: makefile: 4
file content (13 lines) | stat: -rw-r--r-- 161 bytes parent folder | download
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());
}