forked from sfackler/rust-postgres
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinvalid-transparent.stderr
49 lines (44 loc) · 1.52 KB
/
invalid-transparent.stderr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
error: #[postgres(transparent)] may only be applied to single field tuple structs
--> src/compile-fail/invalid-transparent.rs:4:1
|
4 | / #[postgres(transparent)]
5 | | struct ToSqlTransparentStruct {
6 | | a: i32
7 | | }
| |_^
error: #[postgres(transparent)] may only be applied to single field tuple structs
--> src/compile-fail/invalid-transparent.rs:10:1
|
10 | / #[postgres(transparent)]
11 | | struct FromSqlTransparentStruct {
12 | | a: i32
13 | | }
| |_^
error: #[postgres(transparent)] may only be applied to single field tuple structs
--> src/compile-fail/invalid-transparent.rs:16:1
|
16 | / #[postgres(transparent)]
17 | | enum ToSqlTransparentEnum {
18 | | Foo
19 | | }
| |_^
error: #[postgres(transparent)] may only be applied to single field tuple structs
--> src/compile-fail/invalid-transparent.rs:22:1
|
22 | / #[postgres(transparent)]
23 | | enum FromSqlTransparentEnum {
24 | | Foo
25 | | }
| |_^
error: #[postgres(transparent)] may only be applied to single field tuple structs
--> src/compile-fail/invalid-transparent.rs:28:1
|
28 | / #[postgres(transparent)]
29 | | struct ToSqlTransparentTwoFieldTupleStruct(i32, i32);
| |_____________________________________________________^
error: #[postgres(transparent)] may only be applied to single field tuple structs
--> src/compile-fail/invalid-transparent.rs:32:1
|
32 | / #[postgres(transparent)]
33 | | struct FromSqlTransparentTwoFieldTupleStruct(i32, i32);
| |_______________________________________________________^