mozilla/rust — Issue #1890: #fmt "%?" does not print newline escape char
Author: erickt
Created: 2012-02-23 08:00:46+00:00
State: open

The polymorphic printer for strings does not print out escape characters like `\n`. Instead it uses the `\x0a` form. Here's a demonstration:

fn main() {
#error("%?", "foo\nbar");
}

displays `rust: ""foo\x0abar""`