]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/min_max.stderr
55cae4599bf82d805c320c1e35c069678a5bfa6b
[rust.git] / clippy_tests / examples / min_max.stderr
1 error: this min/max combination leads to constant result
2   --> min_max.rs:15:5
3    |
4 15 |     min(1, max(3, x));
5    |     ^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D min-max` implied by `-D warnings`
8
9 error: this min/max combination leads to constant result
10   --> min_max.rs:16:5
11    |
12 16 |     min(max(3, x), 1);
13    |     ^^^^^^^^^^^^^^^^^
14    |
15    = note: `-D min-max` implied by `-D warnings`
16
17 error: this min/max combination leads to constant result
18   --> min_max.rs:17:5
19    |
20 17 |     max(min(x, 1), 3);
21    |     ^^^^^^^^^^^^^^^^^
22    |
23    = note: `-D min-max` implied by `-D warnings`
24
25 error: this min/max combination leads to constant result
26   --> min_max.rs:18:5
27    |
28 18 |     max(3, min(x, 1));
29    |     ^^^^^^^^^^^^^^^^^
30    |
31    = note: `-D min-max` implied by `-D warnings`
32
33 error: this min/max combination leads to constant result
34   --> min_max.rs:20:5
35    |
36 20 |     my_max(3, my_min(x, 1));
37    |     ^^^^^^^^^^^^^^^^^^^^^^^
38    |
39    = note: `-D min-max` implied by `-D warnings`
40
41 error: this min/max combination leads to constant result
42   --> min_max.rs:29:5
43    |
44 29 |     min("Apple", max("Zoo", s));
45    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
46    |
47    = note: `-D min-max` implied by `-D warnings`
48
49 error: this min/max combination leads to constant result
50   --> min_max.rs:30:5
51    |
52 30 |     max(min(s, "Apple"), "Zoo");
53    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
54    |
55    = note: `-D min-max` implied by `-D warnings`
56
57 error: aborting due to previous error(s)
58
59 error: Could not compile `clippy_tests`.
60
61 To learn more, run the command again with --verbose.