File: trait-fn.rs

package info (click to toggle)
rust-no-panic 0.1.32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 164 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 121 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
use no_panic::no_panic;

trait Trait {
    #[no_panic]
    fn f();
}

impl Trait for i32 {
    fn f() {}
}

fn main() {}