]> git.lizzy.rs Git - rust.git/blob - src/test/ui/char_unicode.rs
Rollup merge of #71121 - AnthonyMikh:fix_string_doc_link, r=Dylan-DPC
[rust.git] / src / test / ui / char_unicode.rs
1 // run-pass
2
3 #![feature(unicode_version)]
4
5 /// Tests access to the internal Unicode Version type and value.
6 pub fn main() {
7     check(std::char::UNICODE_VERSION);
8 }
9
10 pub fn check(unicode_version: (u8, u8, u8)) {
11     assert!(unicode_version.0 >= 10);
12 }