]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/min_max.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / min_max.stderr
CommitLineData
f20569fa
XL
1error: this `min`/`max` combination leads to constant result
2 --> $DIR/min_max.rs:24:5
3 |
4LL | min(1, max(3, x));
5 | ^^^^^^^^^^^^^^^^^
6 |
7 = note: `-D clippy::min-max` implied by `-D warnings`
8
9error: this `min`/`max` combination leads to constant result
10 --> $DIR/min_max.rs:25:5
11 |
12LL | min(max(3, x), 1);
13 | ^^^^^^^^^^^^^^^^^
14
15error: this `min`/`max` combination leads to constant result
16 --> $DIR/min_max.rs:26:5
17 |
18LL | max(min(x, 1), 3);
19 | ^^^^^^^^^^^^^^^^^
20
21error: this `min`/`max` combination leads to constant result
22 --> $DIR/min_max.rs:27:5
23 |
24LL | max(3, min(x, 1));
25 | ^^^^^^^^^^^^^^^^^
26
27error: this `min`/`max` combination leads to constant result
28 --> $DIR/min_max.rs:29:5
29 |
30LL | my_max(3, my_min(x, 1));
31 | ^^^^^^^^^^^^^^^^^^^^^^^
32
33error: this `min`/`max` combination leads to constant result
34 --> $DIR/min_max.rs:41:5
35 |
36LL | min("Apple", max("Zoo", s));
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
38
39error: this `min`/`max` combination leads to constant result
40 --> $DIR/min_max.rs:42:5
41 |
42LL | max(min(s, "Apple"), "Zoo");
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
44
45error: this `min`/`max` combination leads to constant result
46 --> $DIR/min_max.rs:47:5
47 |
48LL | x.min(1).max(3);
49 | ^^^^^^^^^^^^^^^
50
51error: this `min`/`max` combination leads to constant result
52 --> $DIR/min_max.rs:48:5
53 |
54LL | x.max(3).min(1);
55 | ^^^^^^^^^^^^^^^
56
57error: this `min`/`max` combination leads to constant result
58 --> $DIR/min_max.rs:49:5
59 |
60LL | f.max(3f32).min(1f32);
61 | ^^^^^^^^^^^^^^^^^^^^^
62
63error: this `min`/`max` combination leads to constant result
64 --> $DIR/min_max.rs:55:5
65 |
66LL | max(x.min(1), 3);
67 | ^^^^^^^^^^^^^^^^
68
69error: this `min`/`max` combination leads to constant result
70 --> $DIR/min_max.rs:58:5
71 |
72LL | s.max("Zoo").min("Apple");
73 | ^^^^^^^^^^^^^^^^^^^^^^^^^
74
75error: this `min`/`max` combination leads to constant result
76 --> $DIR/min_max.rs:59:5
77 |
78LL | s.min("Apple").max("Zoo");
79 | ^^^^^^^^^^^^^^^^^^^^^^^^^
80
81error: aborting due to 13 previous errors
82