1 error[E0308]: mismatched types
2 --> $DIR/structure-constructor-type-mismatch.rs:17:12
7 | expected f32, found integer
8 | help: use a float literal: `1.0`
10 = note: expected type `f32`
11 found type `{integer}`
13 error[E0308]: mismatched types
14 --> $DIR/structure-constructor-type-mismatch.rs:20:12
19 | expected f32, found integer
20 | help: use a float literal: `2.0`
22 = note: expected type `f32`
23 found type `{integer}`
25 error[E0308]: mismatched types
26 --> $DIR/structure-constructor-type-mismatch.rs:26:12
31 | expected f32, found integer
32 | help: use a float literal: `3.0`
34 = note: expected type `f32`
35 found type `{integer}`
37 error[E0308]: mismatched types
38 --> $DIR/structure-constructor-type-mismatch.rs:29:12
43 | expected f32, found integer
44 | help: use a float literal: `4.0`
46 = note: expected type `f32`
47 found type `{integer}`
49 error[E0308]: mismatched types
50 --> $DIR/structure-constructor-type-mismatch.rs:35:12
55 | expected f32, found integer
56 | help: use a float literal: `5.0`
58 = note: expected type `f32`
59 found type `{integer}`
61 error[E0308]: mismatched types
62 --> $DIR/structure-constructor-type-mismatch.rs:42:12
67 | expected f32, found integer
68 | help: use a float literal: `7.0`
70 = note: expected type `f32`
71 found type `{integer}`
73 error[E0107]: wrong number of type arguments: expected 0, found 1
74 --> $DIR/structure-constructor-type-mismatch.rs:48:24
76 LL | let pt3 = PointF::<i32> {
77 | ^^^ unexpected type argument
79 error[E0308]: mismatched types
80 --> $DIR/structure-constructor-type-mismatch.rs:49:12
85 | expected f32, found integer
86 | help: use a float literal: `9.0`
88 = note: expected type `f32`
89 found type `{integer}`
91 error[E0308]: mismatched types
92 --> $DIR/structure-constructor-type-mismatch.rs:50:12
97 | expected f32, found integer
98 | help: use a float literal: `10.0`
100 = note: expected type `f32`
101 found type `{integer}`
103 error[E0107]: wrong number of type arguments: expected 0, found 1
104 --> $DIR/structure-constructor-type-mismatch.rs:54:18
106 LL | PointF::<u32> { .. } => {}
107 | ^^^ unexpected type argument
109 error[E0308]: mismatched types
110 --> $DIR/structure-constructor-type-mismatch.rs:54:9
112 LL | match (Point { x: 1, y: 2 }) {
113 | ---------------------- this match expression has type `Point<{integer}>`
114 LL | PointF::<u32> { .. } => {}
115 | ^^^^^^^^^^^^^^^^^^^^ expected integer, found f32
117 = note: expected type `Point<{integer}>`
118 found type `Point<f32>`
120 error[E0308]: mismatched types
121 --> $DIR/structure-constructor-type-mismatch.rs:59:9
123 LL | match (Point { x: 1, y: 2 }) {
124 | ---------------------- this match expression has type `Point<{integer}>`
125 LL | PointF { .. } => {}
126 | ^^^^^^^^^^^^^ expected integer, found f32
128 = note: expected type `Point<{integer}>`
129 found type `Point<f32>`
131 error[E0308]: mismatched types
132 --> $DIR/structure-constructor-type-mismatch.rs:67:9
134 LL | match (Pair { x: 1, y: 2 }) {
135 | --------------------- this match expression has type `Pair<{integer}, {integer}>`
136 LL | PairF::<u32> { .. } => {}
137 | ^^^^^^^^^^^^^^^^^^^ expected integer, found f32
139 = note: expected type `Pair<{integer}, {integer}>`
140 found type `Pair<f32, u32>`
142 error: aborting due to 13 previous errors
144 Some errors have detailed explanations: E0107, E0308.
145 For more information about an error, try `rustc --explain E0107`.