summary refs log tree commit diff
path: root/src/test/ui/char_unicode.rs
blob: 93e5300e36fe9ec66552a9b68162b8ab970f3123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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);
}