|
| 1 | +error[E0560]: struct `S` has no field named `x` |
| 2 | + --> $DIR/nested-non-tuple-tuple-struct.rs:8:19 |
| 3 | + | |
| 4 | +LL | pub struct S(f32, f32); |
| 5 | + | - `S` defined here |
| 6 | +... |
| 7 | +LL | let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 }); |
| 8 | + | ----^--------------- |
| 9 | + | | | |
| 10 | + | | field does not exist |
| 11 | + | help: `S` is a tuple struct, use the appropriate syntax: `S(/* fields */)` |
| 12 | + |
| 13 | +error[E0560]: struct `S` has no field named `y` |
| 14 | + --> $DIR/nested-non-tuple-tuple-struct.rs:8:27 |
| 15 | + | |
| 16 | +LL | pub struct S(f32, f32); |
| 17 | + | - `S` defined here |
| 18 | +... |
| 19 | +LL | let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 }); |
| 20 | + | ------------^------- |
| 21 | + | | | |
| 22 | + | | field does not exist |
| 23 | + | help: `S` is a tuple struct, use the appropriate syntax: `S(/* fields */)` |
| 24 | + |
| 25 | +error[E0560]: struct `S` has no field named `x` |
| 26 | + --> $DIR/nested-non-tuple-tuple-struct.rs:8:41 |
| 27 | + | |
| 28 | +LL | pub struct S(f32, f32); |
| 29 | + | - `S` defined here |
| 30 | +... |
| 31 | +LL | let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 }); |
| 32 | + | ----^--------------- |
| 33 | + | | | |
| 34 | + | | field does not exist |
| 35 | + | help: `S` is a tuple struct, use the appropriate syntax: `S(/* fields */)` |
| 36 | + |
| 37 | +error[E0560]: struct `S` has no field named `y` |
| 38 | + --> $DIR/nested-non-tuple-tuple-struct.rs:8:49 |
| 39 | + | |
| 40 | +LL | pub struct S(f32, f32); |
| 41 | + | - `S` defined here |
| 42 | +... |
| 43 | +LL | let _x = (S { x: 1.0, y: 2.0 }, S { x: 3.0, y: 4.0 }); |
| 44 | + | ------------^------- |
| 45 | + | | | |
| 46 | + | | field does not exist |
| 47 | + | help: `S` is a tuple struct, use the appropriate syntax: `S(/* fields */)` |
| 48 | + |
| 49 | +error[E0559]: variant `E::V` has no field named `x` |
| 50 | + --> $DIR/nested-non-tuple-tuple-struct.rs:13:22 |
| 51 | + | |
| 52 | +LL | V(f32, f32), |
| 53 | + | - `E::V` defined here |
| 54 | +... |
| 55 | +LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 }); |
| 56 | + | -------^--------------- |
| 57 | + | | | |
| 58 | + | | field does not exist |
| 59 | + | help: `E::V` is a tuple variant, use the appropriate syntax: `E::V(/* fields */)` |
| 60 | + |
| 61 | +error[E0559]: variant `E::V` has no field named `y` |
| 62 | + --> $DIR/nested-non-tuple-tuple-struct.rs:13:30 |
| 63 | + | |
| 64 | +LL | V(f32, f32), |
| 65 | + | - `E::V` defined here |
| 66 | +... |
| 67 | +LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 }); |
| 68 | + | ---------------^------- |
| 69 | + | | | |
| 70 | + | | field does not exist |
| 71 | + | help: `E::V` is a tuple variant, use the appropriate syntax: `E::V(/* fields */)` |
| 72 | + |
| 73 | +error[E0559]: variant `E::V` has no field named `x` |
| 74 | + --> $DIR/nested-non-tuple-tuple-struct.rs:13:47 |
| 75 | + | |
| 76 | +LL | V(f32, f32), |
| 77 | + | - `E::V` defined here |
| 78 | +... |
| 79 | +LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 }); |
| 80 | + | -------^--------------- |
| 81 | + | | | |
| 82 | + | | field does not exist |
| 83 | + | help: `E::V` is a tuple variant, use the appropriate syntax: `E::V(/* fields */)` |
| 84 | + |
| 85 | +error[E0559]: variant `E::V` has no field named `y` |
| 86 | + --> $DIR/nested-non-tuple-tuple-struct.rs:13:55 |
| 87 | + | |
| 88 | +LL | V(f32, f32), |
| 89 | + | - `E::V` defined here |
| 90 | +... |
| 91 | +LL | let _y = (E::V { x: 1.0, y: 2.0 }, E::V { x: 3.0, y: 4.0 }); |
| 92 | + | ---------------^------- |
| 93 | + | | | |
| 94 | + | | field does not exist |
| 95 | + | help: `E::V` is a tuple variant, use the appropriate syntax: `E::V(/* fields */)` |
| 96 | + |
| 97 | +error: aborting due to 8 previous errors |
| 98 | + |
| 99 | +Some errors have detailed explanations: E0559, E0560. |
| 100 | +For more information about an error, try `rustc --explain E0559`. |
0 commit comments