diff -r fb73852e6f4d -r def1b9870078 rust/fpnum/src/lib.rs --- a/rust/fpnum/src/lib.rs Tue Jan 22 18:17:19 2019 +0100 +++ b/rust/fpnum/src/lib.rs Tue Jan 22 20:35:11 2019 +0300 @@ -295,16 +295,16 @@ #[macro_export] macro_rules! fp { - (-$n: tt / $d: tt) => { + (-$n: literal / $d: literal) => { FPNum::new(-$n, $d) }; - ($n: tt / $d: tt) => { + ($n: literal / $d: literal) => { FPNum::new($n, $d) }; - (-$n: tt) => { + (-$n: literal) => { FPNum::from(-$n) }; - ($n: tt) => { + ($n: literal) => { FPNum::from($n) }; }