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 error[E0308]: mismatched types
11 --> $DIR/structure-constructor-type-mismatch.rs:20:12
16 | expected f32, found integer
17 | help: use a float literal: `2.0`
19 error[E0308]: mismatched types
20 --> $DIR/structure-constructor-type-mismatch.rs:26:12
25 | expected f32, found integer
26 | help: use a float literal: `3.0`
28 error[E0308]: mismatched types
29 --> $DIR/structure-constructor-type-mismatch.rs:29:12
34 | expected f32, found integer
35 | help: use a float literal: `4.0`
37 error[E0308]: mismatched types
38 --> $DIR/structure-constructor-type-mismatch.rs:35:12
43 | expected f32, found integer
44 | help: use a float literal: `5.0`
46 error[E0308]: mismatched types
47 --> $DIR/structure-constructor-type-mismatch.rs:42:12
52 | expected f32, found integer
53 | help: use a float literal: `7.0`
55 error[E0107]: wrong number of type arguments: expected 0, found 1
56 --> $DIR/structure-constructor-type-mismatch.rs:48:24
58 LL | let pt3 = PointF::<i32> {
59 | ^^^ unexpected type argument
61 error[E0308]: mismatched types
62 --> $DIR/structure-constructor-type-mismatch.rs:49:12
67 | expected f32, found integer
68 | help: use a float literal: `9.0`
70 error[E0308]: mismatched types
71 --> $DIR/structure-constructor-type-mismatch.rs:50:12
76 | expected f32, found integer
77 | help: use a float literal: `10.0`
79 error[E0107]: wrong number of type arguments: expected 0, found 1
80 --> $DIR/structure-constructor-type-mismatch.rs:54:18
82 LL | PointF::<u32> { .. } => {}
83 | ^^^ unexpected type argument
85 error[E0308]: mismatched types
86 --> $DIR/structure-constructor-type-mismatch.rs:54:9
88 LL | match (Point { x: 1, y: 2 }) {
89 | ---------------------- this match expression has type `Point<{integer}>`
90 LL | PointF::<u32> { .. } => {}
91 | ^^^^^^^^^^^^^^^^^^^^ expected integer, found f32
93 = note: expected struct `Point<{integer}>`
94 found struct `Point<f32>`
96 error[E0308]: mismatched types
97 --> $DIR/structure-constructor-type-mismatch.rs:59:9
99 LL | match (Point { x: 1, y: 2 }) {
100 | ---------------------- this match expression has type `Point<{integer}>`
101 LL | PointF { .. } => {}
102 | ^^^^^^^^^^^^^ expected integer, found f32
104 = note: expected struct `Point<{integer}>`
105 found struct `Point<f32>`
107 error[E0308]: mismatched types
108 --> $DIR/structure-constructor-type-mismatch.rs:67:9
110 LL | match (Pair { x: 1, y: 2 }) {
111 | --------------------- this match expression has type `Pair<{integer}, {integer}>`
112 LL | PairF::<u32> { .. } => {}
113 | ^^^^^^^^^^^^^^^^^^^ expected integer, found f32
115 = note: expected struct `Pair<{integer}, {integer}>`
116 found struct `Pair<f32, u32>`
118 error: aborting due to 13 previous errors
120 Some errors have detailed explanations: E0107, E0308.
121 For more information about an error, try `rustc --explain E0107`.