]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/issue-86600-lint-twice.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / ui / lint / issue-86600-lint-twice.rs
1 // Regression test for #86600, where an instance of the
2 // `illegal_floating_point_literal_pattern` lint was issued twice.
3
4 // check-pass
5
6 fn main() {
7     let x = 42.0;
8
9     match x {
10         5.0 => {}
11         //~^ WARNING: floating-point types cannot be used in patterns
12         //~| WARNING: this was previously accepted by the compiler
13         _ => {}
14     }
15 }