@@ -33,5 +33,93 @@ LL | _ => eprintln!(""),
3333 | |
3434 | help: remove the empty string
3535
36- error: aborting due to 4 previous errors
36+ error: empty string literal in `println!`
37+ --> tests/ui/println_empty_string.rs:25:5
38+ |
39+ LL | println!(""/* ,,, */);
40+ | ^^^^^^^^^-----------^
41+ | |
42+ | help: remove the empty string
43+
44+ error: empty string literal in `println!`
45+ --> tests/ui/println_empty_string.rs:28:14
46+ |
47+ LL | _ => println!("" ,),
48+ | ^^^^^^^^^--------^
49+ | |
50+ | help: remove the empty string
51+
52+ error: empty string literal in `eprintln!`
53+ --> tests/ui/println_empty_string.rs:32:5
54+ |
55+ LL | eprintln!(""
56+ | _____^ -
57+ | |_______________|
58+ LL | || ,);
59+ | ||_________-^
60+ | |__________|
61+ | help: remove the empty string
62+
63+ error: empty string literal in `eprintln!`
64+ --> tests/ui/println_empty_string.rs:36:14
65+ |
66+ LL | _ => eprintln!("" ,), // tab
67+ | ^^^^^^^^^^-------^
68+ | |
69+ | help: remove the empty string
70+
71+ error: empty string literal in `println!`
72+ --> tests/ui/println_empty_string.rs:41:5
73+ |
74+ LL | / println!(
75+ LL | |/ "\
76+ LL | || \
77+ LL | || " /* comment ,,,
78+ LL | || , */ ,
79+ LL | || );
80+ | ||____-^
81+ | |____|
82+ | help: remove the empty string
83+
84+ error: empty string literal in `println!`
85+ --> tests/ui/println_empty_string.rs:49:14
86+ |
87+ LL | _ => println!(
88+ | _______________^
89+ LL | |/ "\
90+ LL | || \
91+ LL | || "
92+ LL | || //, other comment
93+ LL | || ,
94+ LL | || ),
95+ | ||________-^
96+ | |________|
97+ | help: remove the empty string
98+
99+ error: empty string literal in `eprintln!`
100+ --> tests/ui/println_empty_string.rs:59:5
101+ |
102+ LL | / eprintln!(
103+ LL | |/ "\
104+ LL | || \
105+ LL | || ",
106+ LL | || );
107+ | ||____-^
108+ | |____|
109+ | help: remove the empty string
110+
111+ error: empty string literal in `eprintln!`
112+ --> tests/ui/println_empty_string.rs:66:14
113+ |
114+ LL | _ => eprintln!(
115+ | _______________^
116+ LL | |/ "\
117+ LL | || \
118+ LL | || ", // , comment
119+ LL | || ),
120+ | ||________-^
121+ | |________|
122+ | help: remove the empty string
123+
124+ error: aborting due to 12 previous errors
37125
0 commit comments