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]: this type alias takes 0 generic arguments but 1 generic argument was supplied
56 --> $DIR/structure-constructor-type-mismatch.rs:48:15
58 LL | let pt3 = PointF::<i32> {
59 | ^^^^^^------- help: remove these generics
61 | expected 0 generic arguments
63 note: type alias defined here, with 0 generic parameters
64 --> $DIR/structure-constructor-type-mismatch.rs:6:6
66 LL | type PointF = Point<f32>;
69 error[E0308]: mismatched types
70 --> $DIR/structure-constructor-type-mismatch.rs:49:12
75 | expected `f32`, found integer
76 | help: use a float literal: `9.0`
78 error[E0308]: mismatched types
79 --> $DIR/structure-constructor-type-mismatch.rs:50:12
84 | expected `f32`, found integer
85 | help: use a float literal: `10.0`
87 error[E0107]: this type alias takes 0 generic arguments but 1 generic argument was supplied
88 --> $DIR/structure-constructor-type-mismatch.rs:54:9
90 LL | PointF::<u32> { .. } => {}
91 | ^^^^^^------- help: remove these generics
93 | expected 0 generic arguments
95 note: type alias defined here, with 0 generic parameters
96 --> $DIR/structure-constructor-type-mismatch.rs:6:6
98 LL | type PointF = Point<f32>;
101 error[E0308]: mismatched types
102 --> $DIR/structure-constructor-type-mismatch.rs:54:9
104 LL | PointF::<u32> { .. } => {}
105 | ^^^^^^^^^^^^^^^^^^^^ expected integer, found `f32`
107 = note: expected struct `Point<{integer}>`
108 found struct `Point<f32>`
110 error[E0308]: mismatched types
111 --> $DIR/structure-constructor-type-mismatch.rs:59:9
113 LL | PointF { .. } => {}
114 | ^^^^^^^^^^^^^ expected integer, found `f32`
116 = note: expected struct `Point<{integer}>`
117 found struct `Point<f32>`
119 error[E0308]: mismatched types
120 --> $DIR/structure-constructor-type-mismatch.rs:67:9
122 LL | PairF::<u32> { .. } => {}
123 | ^^^^^^^^^^^^^^^^^^^ expected integer, found `f32`
125 = note: expected struct `Pair<{integer}, {integer}>`
126 found struct `Pair<f32, u32>`
128 error: aborting due to 13 previous errors
130 Some errors have detailed explanations: E0107, E0308.
131 For more information about an error, try `rustc --explain E0107`.