rust/fpnum/src/lib.rs
changeset 14685 def1b9870078
parent 14648 2e2b31cf0871
child 14688 6b70c109389f
--- 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)
     };
 }