mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
11 lines
311 B
Rust
11 lines
311 B
Rust
// pretty-compare-only
|
|
// pretty-mode:expanded
|
|
// pp-exact:format-args-str-escape.pp
|
|
|
|
fn main() {
|
|
println!("\x1B[1mHello, world!\x1B[0m");
|
|
println!("\u{1B}[1mHello, world!\u{1B}[0m");
|
|
println!("Not an escape sequence: \\u{{1B}}[1mbold\\x1B[0m");
|
|
println!("{}", "\x1B[1mHello, world!\x1B[0m");
|
|
}
|