#![feature(plugin)] #![plugin(rustc_info)] #[test] fn has_release() { assert!(rustc_release!().len() > 0, "uknown rustc release"); } #[test] fn has_commit_hash() { assert!(rustc_commit_hash!().len() > 0, "uknown rustc commit hash"); } #[test] fn has_commit_date() { assert!(rustc_commit_date!().len() > 0, "uknown rustc commit date"); } #[test] fn has_host() { assert!(rustc_host!().len() > 0, "uknown rustc host triple"); }