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