@@ -7,12 +7,6 @@ error[E0271]: type mismatch resolving `<id as Column>::Table == table`
77 | required by a bound introduced by this call
88 |
99note: expected this to be `users::table`
10- --> tests/fail/insert_cannot_reference_columns_from_other_table.rs:14:9
11- |
12- LL | id -> Integer,
13- | ^^
14- = note: `posts::table` and `users::table` have similar names, but are actually distinct types
15- note: `posts::table` is defined in module `crate::posts` of the current crate
1610 --> tests/fail/insert_cannot_reference_columns_from_other_table.rs:12:1
1711 |
1812 LL | / table! {
@@ -21,15 +15,19 @@ note: `posts::table` is defined in module `crate::posts` of the current crate
2115 LL | | }
2216 LL | | }
2317 | |_^
18+ = note: `posts::table` and `users::table` have similar names, but are actually distinct types
19+ note: `posts::table` is defined in module `crate::posts` of the current crate
20+ --> tests/fail/insert_cannot_reference_columns_from_other_table.rs:12:1
21+ |
22+ LL | / table! {
23+ LL | | posts {
24+ | |_________^
2425note: `users::table` is defined in module `crate::users` of the current crate
2526 --> tests/fail/insert_cannot_reference_columns_from_other_table.rs:6:1
2627 |
2728 LL | / table! {
2829 LL | | users {
29- LL | | id -> Integer,
30- LL | | }
31- LL | | }
32- | |_^
30+ | |_________^
3331 = note: required for `&Eq<id, Bound<Integer, i32>>` to implement `diesel::Insertable<users::table>`
3432 = note: 1 redundant requirement hidden
3533 = note: required for `&Grouped<Eq<id, Bound<Integer, i32>>>` to implement `diesel::Insertable<users::table>`
@@ -56,19 +54,13 @@ note: `posts::table` is defined in module `crate::posts` of the current crate
5654 |
5755LL | / table! {
5856LL | | posts {
59- LL | | id -> Integer,
60- LL | | }
61- LL | | }
62- | |_^
57+ | |_________^
6358note: `users::table` is defined in module `crate::users` of the current crate
6459 --> tests/fail/insert_cannot_reference_columns_from_other_table.rs:6:1
6560 |
6661 LL | / table! {
6762 LL | | users {
68- LL | | id -> Integer,
69- LL | | }
70- LL | | }
71- | |_^
63+ | |_________^
7264 = note: required for `(&Grouped<Eq<id, Bound<Integer, i32>>>, &Grouped<Eq<id, ...>>)` to implement `diesel::Insertable<users::table>`
7365
7466 = note: this error originates in the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -87,19 +79,13 @@ note: `posts::table` is defined in module `crate::posts` of the current crate
8779 |
8880 LL | / table! {
8981 LL | | posts {
90- LL | | id -> Integer,
91- LL | | }
92- LL | | }
93- | |_^
82+ | |_________^
9483note: `users::table` is defined in module `crate::users` of the current crate
9584 --> tests/fail/insert_cannot_reference_columns_from_other_table.rs:6:1
9685 |
9786 LL | / table! {
9887 LL | | users {
99- LL | | id -> Integer,
100- LL | | }
101- LL | | }
102- | |_^
88+ | |_________^
10389 = note: required for `(&Grouped<Eq<id, Bound<Integer, i32>>>, &Grouped<Eq<id, ...>>)` to implement `diesel::Insertable<users::table>`
10490 = note: 1 redundant requirement hidden
10591 = note: required for `&(Grouped<Eq<id, Bound<Integer, i32>>>, Grouped<Eq<id, ...>>)` to implement `diesel::Insertable<users::table>`
@@ -123,12 +109,6 @@ error[E0271]: type mismatch resolving `<id as Column>::Table == table`
123109 | required by a bound introduced by this call
124110 |
125111note: expected this to be `users::table`
126- --> tests/fail/insert_cannot_reference_columns_from_other_table.rs:14:9
127- |
128- LL | id -> Integer,
129- | ^^
130- = note: `posts::table` and `users::table` have similar names, but are actually distinct types
131- note: `posts::table` is defined in module `crate::posts` of the current crate
132112 --> tests/fail/insert_cannot_reference_columns_from_other_table.rs:12:1
133113 |
134114 LL | / table! {
@@ -137,15 +117,19 @@ note: `posts::table` is defined in module `crate::posts` of the current crate
137117 LL | | }
138118 LL | | }
139119 | |_^
120+ = note: `posts::table` and `users::table` have similar names, but are actually distinct types
121+ note: `posts::table` is defined in module `crate::posts` of the current crate
122+ --> tests/fail/insert_cannot_reference_columns_from_other_table.rs:12:1
123+ |
124+ LL | / table! {
125+ LL | | posts {
126+ | |_________^
140127note: `users::table` is defined in module `crate::users` of the current crate
141128 --> tests/fail/insert_cannot_reference_columns_from_other_table.rs:6:1
142129 |
143130 LL | / table! {
144131 LL | | users {
145- LL | | id -> Integer,
146- LL | | }
147- LL | | }
148- | |_^
132+ | |_________^
149133 = note: required for `&Eq<id, Bound<Integer, i32>>` to implement `diesel::Insertable<users::table>`
150134 = note: 3 redundant requirements hidden
151135 = note: required for `&(Grouped<Eq<id, Bound<Integer, i32>>>, Grouped<Eq<id, ...>>)` to implement `diesel::Insertable<users::table>`
0 commit comments