@@ -33,5 +33,88 @@ 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+ | ||_________________________________- help: remove the empty string
79+ LL | | );
80+ | |______^
81+
82+ error: empty string literal in `println!`
83+ --> tests/ui/println_empty_string.rs:48:14
84+ |
85+ LL | _ => println!(
86+ | _______________^
87+ LL | |/ "\
88+ LL | || \
89+ LL | || "
90+ LL | || // comment
91+ LL | || ,
92+ | ||_____________________- help: remove the empty string
93+ LL | | ),
94+ | |__________^
95+
96+ error: empty string literal in `eprintln!`
97+ --> tests/ui/println_empty_string.rs:58:5
98+ |
99+ LL | / eprintln!(
100+ LL | |/ "\
101+ LL | || \
102+ LL | || ",
103+ | ||__________________- help: remove the empty string
104+ LL | | );
105+ | |______^
106+
107+ error: empty string literal in `eprintln!`
108+ --> tests/ui/println_empty_string.rs:65:14
109+ |
110+ LL | _ => eprintln!(
111+ | _______________^
112+ LL | |/ "\
113+ LL | || \
114+ LL | || ",
115+ | ||______________________- help: remove the empty string
116+ LL | | ),
117+ | |__________^
118+
119+ error: aborting due to 12 previous errors
37120
0 commit comments