]> git.lizzy.rs Git - rust.git/blob - src/test/ui/terminal-width/tabs-trimming.rs
sess: stabilize `--terminal-width`
[rust.git] / src / test / ui / terminal-width / tabs-trimming.rs
1 // Test for #78438: ensure underline alignment with many tabs on the left, long line on the right
2
3 // ignore-tidy-linelength
4 // ignore-tidy-tab
5
6                                         fn main() {
7                                                 let money = 42i32;
8                                                 match money {
9                                                         v @ 1 | 2 | 3 => panic!("You gave me too little money {}", v), // Long text here: TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
10                                                         //~^ ERROR variable `v` is not bound in all patterns
11                                                         v => println!("Enough money {}", v),
12                                                 }
13                                         }