Macro todo_or_die::rust_version[][src]

rust_version!() { /* proc-macro */ }
Expand description

Trigger a compile error if the currently used version of rust used matches some expression.

Note that release channels (like nightly or beta) are ignored.

Requires the rust feature to be enabled.

Example

todo_or_die::rust_version!(">1.50");

Any version requirement supported by semver::VersionReq::parse is supported.