]> git.proxmox.com Git - rustc.git/blame - src/test/ui/char_unicode.rs
New upstream version 1.45.0+dfsg1
[rustc.git] / src / test / ui / char_unicode.rs
CommitLineData
416331ca
XL
1// run-pass
2
f9f354fc 3/// Tests access to the Unicode version constant.
ea8adc8c
XL
4pub fn main() {
5 check(std::char::UNICODE_VERSION);
223e47cc
LB
6}
7
ba9703b0
XL
8pub fn check(unicode_version: (u8, u8, u8)) {
9 assert!(unicode_version.0 >= 10);
ea8adc8c 10}