File: floats.stderr

package info (click to toggle)
rustc 1.87.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 925,564 kB
  • sloc: xml: 158,127; python: 36,039; javascript: 19,761; sh: 19,737; cpp: 18,981; ansic: 13,133; asm: 4,376; makefile: 710; perl: 29; lisp: 28; ruby: 19; sql: 11
file content (146 lines) | stat: -rw-r--r-- 4,054 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
error[E0004]: non-exhaustive patterns: `_` not covered
  --> $DIR/floats.rs:11:11
   |
LL |     match 0.0 {
   |           ^^^ pattern `_` not covered
   |
   = note: the matched value is of type `f64`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
   |
LL ~         0.0..=1.0 => {},
LL +         _ => todo!()
   |

error: unreachable pattern
  --> $DIR/floats.rs:18:9
   |
LL |         0.01f16..=6.5f16 => {}
   |         ---------------- matches all the relevant values
LL |         0.01f16 => {}
   |         ^^^^^^^ no value can reach this
   |
note: the lint level is defined here
  --> $DIR/floats.rs:1:9
   |
LL | #![deny(unreachable_patterns)]
   |         ^^^^^^^^^^^^^^^^^^^^

error: unreachable pattern
  --> $DIR/floats.rs:19:9
   |
LL |         0.01f16..=6.5f16 => {}
   |         ---------------- matches all the relevant values
LL |         0.01f16 => {}
LL |         0.02f16 => {}
   |         ^^^^^^^ no value can reach this

error: unreachable pattern
  --> $DIR/floats.rs:20:9
   |
LL |         0.01f16..=6.5f16 => {}
   |         ---------------- matches all the relevant values
...
LL |         6.5f16 => {}
   |         ^^^^^^ no value can reach this

error: unreachable pattern
  --> $DIR/floats.rs:31:9
   |
LL |         0.01f32..=6.5f32 => {}
   |         ---------------- matches all the relevant values
LL |         0.01f32 => {}
   |         ^^^^^^^ no value can reach this

error: unreachable pattern
  --> $DIR/floats.rs:32:9
   |
LL |         0.01f32..=6.5f32 => {}
   |         ---------------- matches all the relevant values
LL |         0.01f32 => {}
LL |         0.02f32 => {}
   |         ^^^^^^^ no value can reach this

error: unreachable pattern
  --> $DIR/floats.rs:33:9
   |
LL |         0.01f32..=6.5f32 => {}
   |         ---------------- matches all the relevant values
...
LL |         6.5f32 => {}
   |         ^^^^^^ no value can reach this

error: unreachable pattern
  --> $DIR/floats.rs:45:9
   |
LL |         0.01f64..=6.5f64 => {}
   |         ---------------- matches all the relevant values
LL |         0.005f64 => {}
LL |         0.01f64 => {}
   |         ^^^^^^^ no value can reach this

error: unreachable pattern
  --> $DIR/floats.rs:46:9
   |
LL |         0.01f64..=6.5f64 => {}
   |         ---------------- matches all the relevant values
...
LL |         0.02f64 => {}
   |         ^^^^^^^ no value can reach this

error: unreachable pattern
  --> $DIR/floats.rs:47:9
   |
LL |         0.01f64..=6.5f64 => {}
   |         ---------------- matches all the relevant values
...
LL |         6.5f64 => {}
   |         ^^^^^^ no value can reach this

error: unreachable pattern
  --> $DIR/floats.rs:49:9
   |
LL |         0.01f64..=6.5f64 => {}
   |         ---------------- matches all the relevant values
...
LL |         1.0f64..=4.0f64 => {}
   |         ^^^^^^^^^^^^^^^ no value can reach this

error: unreachable pattern
  --> $DIR/floats.rs:62:9
   |
LL |         0.01f128..=6.5f128 => {}
   |         ------------------ matches all the relevant values
LL |         0.005f128 => {}
LL |         0.01f128 => {}
   |         ^^^^^^^^ no value can reach this

error: unreachable pattern
  --> $DIR/floats.rs:63:9
   |
LL |         0.01f128..=6.5f128 => {}
   |         ------------------ matches all the relevant values
...
LL |         0.02f128 => {}
   |         ^^^^^^^^ no value can reach this

error: unreachable pattern
  --> $DIR/floats.rs:64:9
   |
LL |         0.01f128..=6.5f128 => {}
   |         ------------------ matches all the relevant values
...
LL |         6.5f128 => {}
   |         ^^^^^^^ no value can reach this

error: unreachable pattern
  --> $DIR/floats.rs:66:9
   |
LL |         0.01f128..=6.5f128 => {}
   |         ------------------ matches all the relevant values
...
LL |         1.0f128..=4.0f128 => {}
   |         ^^^^^^^^^^^^^^^^^ no value can reach this

error: aborting due to 15 previous errors

For more information about this error, try `rustc --explain E0004`.