2020-12-05 13:04:58 -06:00
|
|
|
// 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
|
2024-02-01 16:45:00 -06:00
|
|
|
//~| ERROR possibly-uninitialized
|
2020-12-05 13:04:58 -06:00
|
|
|
v => println!("Enough money {}", v),
|
|
|
|
}
|
|
|
|
}
|