xref: /third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/enum-undefault.rs
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/
112a9d9c8Sopenharmony_ci#![allow(
212a9d9c8Sopenharmony_ci    dead_code,
312a9d9c8Sopenharmony_ci    non_snake_case,
412a9d9c8Sopenharmony_ci    non_camel_case_types,
512a9d9c8Sopenharmony_ci    non_upper_case_globals
612a9d9c8Sopenharmony_ci)]
712a9d9c8Sopenharmony_ci
812a9d9c8Sopenharmony_ci#[repr(u32)]
912a9d9c8Sopenharmony_ci#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1012a9d9c8Sopenharmony_cipub enum Foo {
1112a9d9c8Sopenharmony_ci    Bar = 0,
1212a9d9c8Sopenharmony_ci    Qux = 1,
1312a9d9c8Sopenharmony_ci}
1412a9d9c8Sopenharmony_cipub const Neg_MinusOne: Neg = -1;
1512a9d9c8Sopenharmony_cipub const Neg_One: Neg = 1;
1612a9d9c8Sopenharmony_cipub type Neg = ::std::os::raw::c_int;
17

Indexes created Thu Nov 07 10:32:03 CST 2024