]> git.lizzy.rs Git - rust.git/blob - tests/ui/fmt/unicode-escape-spans.rs
Rollup merge of #105784 - yanns:update_stdarch, r=Amanieu
[rust.git] / tests / ui / fmt / unicode-escape-spans.rs
1 fn main() {
2     // 1 byte in UTF-8
3     format!("\u{000041}{a}"); //~ ERROR cannot find value
4     format!("\u{0041}{a}"); //~ ERROR cannot find value
5     format!("\u{41}{a}"); //~ ERROR cannot find value
6     format!("\u{0}{a}"); //~ ERROR cannot find value
7
8     // 2 bytes
9     format!("\u{0df}{a}"); //~ ERROR cannot find value
10     format!("\u{df}{a}"); //~ ERROR cannot find value
11
12     // 3 bytes
13     format!("\u{00211d}{a}"); //~ ERROR cannot find value
14     format!("\u{211d}{a}"); //~ ERROR cannot find value
15
16     // 4 bytes
17     format!("\u{1f4a3}{a}"); //~ ERROR cannot find value
18     format!("\u{10ffff}{a}"); //~ ERROR cannot find value
19 }