Browse Source

primitives

master
Avril 2 years ago
parent
commit
78256a807b
Signed by: flanchan
GPG Key ID: 284488987C31F630
  1. 1
      src/lib.rs
  2. 8
      src/primitive.rs

1
src/lib.rs

@ -30,6 +30,7 @@
#![cfg_attr(nightly, feature(test))]
#![cfg_attr(nightly, feature(drain_filter))]
#![cfg_attr(nightly, feature(const_fn))]
#![cfg_attr(nightly, feature(never_type))]
#[cfg(nightly)] extern crate test;
#[macro_use] extern crate const_fn;

8
src/primitive.rs

@ -133,3 +133,11 @@ prim!(NonZeroUsize: ^+);
prim!((): fn {
0
});
#[cfg(nightly)]
prim!(!: {
fn collapse(&self) -> u8
{
*self
}
});

Loading…
Cancel
Save