aa0175c98d
The feature will become stable in Rust 1.45. Noted that the value of UNICODE_VERSION is expected to change.
11 lines
207 B
Rust
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);
|
|
}
|