about summary refs log tree commit diff
path: root/tests/ui/diagnostic-width/tabs-trimming.rs
blob: 96babde33e9a44834cf818ba1acf12fa0ca78d22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Test for #78438: ensure underline alignment with many tabs on the left, long line on the right

// ignore-tidy-linelength
// ignore-tidy-tab

					fn main() {
						let money = 42i32;
						match money {
							v @ 1 | 2 | 3 => panic!("You gave me too little money {}", v), // Long text here: TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
							//~^ ERROR variable `v` is not bound in all patterns
							//~| ERROR possibly-uninitialized
							v => println!("Enough money {}", v),
						}
					}