Skip to content

Commit 1a37137

Browse files
authored
Merge pull request #1354 from cryspen/missing-int-macro
fix(hax-lib/dummy): intro `int!`
2 parents 4588e9d + 79016ba commit 1a37137

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hax-lib/src/dummy.rs

+7
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ pub trait RefineAs<RefinedType> {
6161
pub mod int {
6262
use core::ops::*;
6363

64+
#[macro_export]
65+
macro_rules! int {
66+
($lit:expr) => {
67+
Int($lit)
68+
};
69+
}
70+
6471
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd)]
6572
pub struct Int(pub u8);
6673

0 commit comments

Comments
 (0)