]> git.lizzy.rs Git - rust.git/blob - tests/target/string_punctuation.rs
Make tests fail if rustfmt encounters an error
[rust.git] / tests / target / string_punctuation.rs
1 // rustfmt-format_strings: true
2 // rustfmt-error_on_line_overflow: false
3
4 fn main() {
5     println!("ThisIsAReallyLongStringWithNoSpaces.It_should_prefer_to_break_onpunctuation:\
6               Likethisssssssssssss");
7     format!("{}__{}__{}ItShouldOnlyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyNoticeSemicolonsPeriodsColonsAndCommasAndResortToMid-CharBreaksAfterPunctuation{}{}",x,y,z,a,b);
8     println!("aaaaaaaaaaaaaaaaaaaaaaaaaaaaalhijalfhiigjapdighjapdigjapdighdapighapdighpaidhg;\
9               adopgihadoguaadbadgad,qeoihapethae8t0aet8haetadbjtaeg;\
10               ooeouthaoeutgadlgajduabgoiuadogabudogubaodugbadgadgadga;adoughaoeugbaouea");
11 }