2016-01-28 06:14:08 +00:00
|
|
|
// rustfmt-force_format_strings: true
|
2015-06-15 19:37:27 +00:00
|
|
|
// Long string literals
|
|
|
|
|
|
|
|
fn main() -> &'static str {
|
|
|
|
let str = "AAAAAAAAAAAAAAaAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAaAA \
|
|
|
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaAa";
|
2015-08-21 11:31:09 +00:00
|
|
|
let str = "AAAAAAAAAAAAAAaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaAAAAAAAAAAAAAAAAAAAAA\
|
|
|
|
AAAAAAAAAAAAaAa";
|
2015-06-15 19:37:27 +00:00
|
|
|
let str = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
|
|
|
|
|
|
|
|
let too_many_lines = "Hello";
|
|
|
|
|
|
|
|
// Make sure we don't break after an escape character.
|
2015-08-21 11:31:09 +00:00
|
|
|
let odd_length_name = "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
|
|
|
|
\n\n\n";
|
2015-06-15 19:37:27 +00:00
|
|
|
let even_length_name = "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
|
|
|
|
\n\n\n";
|
|
|
|
|
2015-08-21 11:31:09 +00:00
|
|
|
let really_long_variable_name = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\
|
|
|
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\
|
|
|
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\
|
|
|
|
AA";
|
2015-06-15 19:37:27 +00:00
|
|
|
|
2015-08-22 19:20:31 +00:00
|
|
|
let raw_string = r#"Do
|
|
|
|
not
|
|
|
|
remove
|
|
|
|
formatting"#;
|
|
|
|
|
2015-12-02 20:03:41 +00:00
|
|
|
filename.replace(" ", "\\");
|
|
|
|
|
2015-09-01 18:42:07 +00:00
|
|
|
let xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx = funktion("yyyyyyyyyyyyyyyyyyyyy\
|
|
|
|
yyyyyyyyyyyyyyyyyyyyy\
|
|
|
|
yyyyyyyyyyyyyyyyyyyyy\
|
|
|
|
yyyyyyyyyy");
|
|
|
|
|
2015-09-04 03:38:12 +00:00
|
|
|
let unicode = "a̐éö̲\r\n";
|
|
|
|
let unicode2 = "Löwe 老虎 Léopard";
|
|
|
|
let unicode3 = "中华Việt Nam";
|
|
|
|
let unicode4 = "☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃\
|
|
|
|
☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃☃";
|
|
|
|
|
2015-09-10 22:53:21 +00:00
|
|
|
"stuffin'"
|
2015-06-15 19:37:27 +00:00
|
|
|
}
|
2015-12-12 15:20:53 +00:00
|
|
|
|
|
|
|
fn issue682() {
|
|
|
|
let a = "hello \\ o/";
|
|
|
|
let b = a.replace("\\ ", "\\");
|
|
|
|
}
|
2015-12-25 17:50:40 +00:00
|
|
|
|
|
|
|
fn issue716() {
|
|
|
|
println!("forall x. mult(e(), x) = x /\\
|
|
|
|
forall x. mult(x, x) = e()");
|
|
|
|
}
|