]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/issue-86600-lint-twice.rs
New upstream version 1.55.0+dfsg1
[rustc.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 }