2015-06-15 14:37:27 -05:00
|
|
|
// Long string literals
|
|
|
|
|
|
|
|
fn main() -> &'static str {
|
|
|
|
let str = "AAAAAAAAAAAAAAaAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAaAA \
|
|
|
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaAa";
|
2015-08-21 06:31:09 -05:00
|
|
|
let str = "AAAAAAAAAAAAAAaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaAAAAAAAAAAAAAAAAAAAAA\
|
|
|
|
AAAAAAAAAAAAaAa";
|
2015-06-15 14:37:27 -05:00
|
|
|
let str = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
|
|
|
|
|
|
|
|
let too_many_lines = "Hello";
|
|
|
|
|
|
|
|
// Make sure we don't break after an escape character.
|
2015-08-21 06:31:09 -05: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 14:37:27 -05: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 06:31:09 -05:00
|
|
|
let really_long_variable_name = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\
|
|
|
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\
|
|
|
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\
|
|
|
|
AA";
|
2015-06-15 14:37:27 -05:00
|
|
|
|
2015-08-22 14:20:31 -05:00
|
|
|
let raw_string = r#"Do
|
|
|
|
not
|
|
|
|
remove
|
|
|
|
formatting"#;
|
|
|
|
|
2015-06-15 14:37:27 -05:00
|
|
|
"stuff"
|
|
|
|
}
|