]> git.lizzy.rs Git - rust.git/blob - tests/ui/min_max.stderr
rustup and compile-fail -> ui test move
[rust.git] / tests / ui / min_max.stderr
1 error: this min/max combination leads to constant result
2   --> $DIR/min_max.rs:15:5
3    |
4 15 |     min(1, max(3, x)); //~ERROR this min/max combination leads to constant result
5    |     ^^^^^^^^^^^^^^^^^
6    |
7    = note: #[deny(min_max)] implied by #[deny(clippy)]
8 note: lint level defined here
9   --> $DIR/min_max.rs:4:9
10    |
11 4  | #![deny(clippy)]
12    |         ^^^^^^
13
14 error: this min/max combination leads to constant result
15   --> $DIR/min_max.rs:16:5
16    |
17 16 |     min(max(3, x), 1); //~ERROR this min/max combination leads to constant result
18    |     ^^^^^^^^^^^^^^^^^
19    |
20    = note: #[deny(min_max)] implied by #[deny(clippy)]
21
22 error: this min/max combination leads to constant result
23   --> $DIR/min_max.rs:17:5
24    |
25 17 |     max(min(x, 1), 3); //~ERROR this min/max combination leads to constant result
26    |     ^^^^^^^^^^^^^^^^^
27    |
28    = note: #[deny(min_max)] implied by #[deny(clippy)]
29
30 error: this min/max combination leads to constant result
31   --> $DIR/min_max.rs:18:5
32    |
33 18 |     max(3, min(x, 1)); //~ERROR this min/max combination leads to constant result
34    |     ^^^^^^^^^^^^^^^^^
35    |
36    = note: #[deny(min_max)] implied by #[deny(clippy)]
37
38 error: this min/max combination leads to constant result
39   --> $DIR/min_max.rs:20:5
40    |
41 20 |     my_max(3, my_min(x, 1)); //~ERROR this min/max combination leads to constant result
42    |     ^^^^^^^^^^^^^^^^^^^^^^^
43    |
44    = note: #[deny(min_max)] implied by #[deny(clippy)]
45
46 error: this min/max combination leads to constant result
47   --> $DIR/min_max.rs:29:5
48    |
49 29 |     min("Apple", max("Zoo", s)); //~ERROR this min/max combination leads to constant result
50    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
51    |
52    = note: #[deny(min_max)] implied by #[deny(clippy)]
53
54 error: this min/max combination leads to constant result
55   --> $DIR/min_max.rs:30:5
56    |
57 30 |     max(min(s, "Apple"), "Zoo"); //~ERROR this min/max combination leads to constant result
58    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
59    |
60    = note: #[deny(min_max)] implied by #[deny(clippy)]
61
62 error: aborting due to 7 previous errors
63