a4faeeffc4
rational: test_recip_fail: Correct should_panic syntax Fixes this warning with rustc nightly: ``` warning: attribute must be of the form: `#[should_panic]` or `#[should_panic(expected = "error message")]` --> rational/src/lib.rs:1051:7 | 1051 | #[should_panic = "== 0"] | ^^^^^^^^^^^^^^^^^^^^^ | = note: Errors in this attribute were erroneously allowed and will become a hard error in a future release. ``` |
||
---|---|---|
.travis | ||
benches | ||
bigint | ||
complex | ||
derive | ||
doc | ||
integer | ||
iter | ||
macros | ||
rational | ||
src | ||
traits | ||
.gitignore | ||
.rustup.sh | ||
.travis.yml | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
Makefile | ||
README.md |
README.md
num
A collection of numeric types and traits for Rust.
This includes new types for big integers, rationals, and complex numbers, new traits for generic programming on numeric properties like `Integer, and generic range iterators.
Usage
Add this to your Cargo.toml
:
[dependencies]
num = "0.1"
and this to your crate root:
extern crate num;