rust/src/test/ui/char_unicode.rs
2019-07-27 18:56:16 +03:00

13 lines
269 B
Rust

// run-pass
#![feature(unicode_version)]
/// Tests access to the internal Unicode Version type and value.
pub fn main() {
check(std::char::UNICODE_VERSION);
}
pub fn check(unicode_version: std::char::UnicodeVersion) {
assert!(unicode_version.major >= 10);
}