File: enum_assoc.rs

package info (click to toggle)
rust-cxx 1.0.192-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,808 kB
  • sloc: cpp: 1,625; javascript: 124; sh: 11; makefile: 8
file content (16 lines) | stat: -rw-r--r-- 181 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[cxx::bridge]
mod ffi {
    enum Enum {
        Variant,
    }
    extern "Rust" {
        #[Self = "Enum"]
        fn f();
    }
}

impl ffi::Enum {
    fn f() {}
}

fn main() {}