This requires removing the Error impl of ParseNumError, because the Error trait is std-only.
And add the AsRef, Borrow, wstr::Pattern to the macro