2019-07-26 16:54:25 -05:00
|
|
|
// run-pass
|
|
|
|
|
2018-04-06 07:18:28 -05:00
|
|
|
#![feature(unicode_version)]
|
2017-09-18 21:27:08 -05:00
|
|
|
|
|
|
|
/// 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);
|
|
|
|
}
|