rust/src/test/ui/char_unicode.rs
Pyfisch aa0175c98d Stabilize UNICODE_VERSION (feature unicode_version)
The feature will become stable in Rust 1.45.
Noted that the value of UNICODE_VERSION is expected to change.
2020-04-23 14:36:30 +02:00

11 lines
207 B
Rust

// run-pass
/// Tests access to the Unicode version constant.
pub fn main() {
check(std::char::UNICODE_VERSION);
}
pub fn check(unicode_version: (u8, u8, u8)) {
assert!(unicode_version.0 >= 10);
}