2018-10-25 09:53:04 +00:00
|
|
|
error: fieldless structs or variants are not supported
|
|
|
|
--> $DIR/uri_display.rs:4:1
|
|
|
|
|
|
|
|
|
4 | struct Foo1;
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: error occurred while deriving `UriDisplay`
|
|
|
|
--> $DIR/uri_display.rs:3:10
|
|
|
|
|
|
2018-11-27 16:01:47 +00:00
|
|
|
3 | #[derive(UriDisplayQuery)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2018-10-25 09:53:04 +00:00
|
|
|
|
|
|
|
error: fieldless structs or variants are not supported
|
|
|
|
--> $DIR/uri_display.rs:8:1
|
|
|
|
|
|
|
|
|
8 | struct Foo2();
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: error occurred while deriving `UriDisplay`
|
|
|
|
--> $DIR/uri_display.rs:7:10
|
|
|
|
|
|
2018-11-27 16:01:47 +00:00
|
|
|
7 | #[derive(UriDisplayQuery)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2018-10-25 09:53:04 +00:00
|
|
|
|
|
|
|
error: empty enums are not supported
|
|
|
|
--> $DIR/uri_display.rs:12:1
|
|
|
|
|
|
|
|
|
12 | enum Foo3 { }
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: error occurred while deriving `UriDisplay`
|
|
|
|
--> $DIR/uri_display.rs:11:10
|
|
|
|
|
|
2018-11-27 16:01:47 +00:00
|
|
|
11 | #[derive(UriDisplayQuery)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2018-10-25 09:53:04 +00:00
|
|
|
|
|
|
|
error: fieldless structs or variants are not supported
|
|
|
|
--> $DIR/uri_display.rs:17:5
|
|
|
|
|
|
|
|
|
17 | Variant,
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
note: error occurred while deriving `UriDisplay`
|
|
|
|
--> $DIR/uri_display.rs:15:10
|
|
|
|
|
|
2018-11-27 16:01:47 +00:00
|
|
|
15 | #[derive(UriDisplayQuery)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2018-10-25 09:53:04 +00:00
|
|
|
|
|
|
|
error: tuple structs or variants must have exactly one field
|
|
|
|
--> $DIR/uri_display.rs:22:12
|
|
|
|
|
|
|
|
|
22 | struct Foo5(String, String);
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: error occurred while deriving `UriDisplay`
|
|
|
|
--> $DIR/uri_display.rs:21:10
|
|
|
|
|
|
2018-11-27 16:01:47 +00:00
|
|
|
21 | #[derive(UriDisplayQuery)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2018-10-25 09:53:04 +00:00
|
|
|
|
|
|
|
error: invalid value: expected string literal
|
|
|
|
--> $DIR/uri_display.rs:27:20
|
|
|
|
|
|
|
|
|
27 | #[form(field = 123)]
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
note: error occurred while deriving `UriDisplay`
|
|
|
|
--> $DIR/uri_display.rs:25:10
|
|
|
|
|
|
2018-11-27 16:01:47 +00:00
|
|
|
25 | #[derive(UriDisplayQuery)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2018-10-25 09:53:04 +00:00
|
|
|
|
2018-11-27 16:01:47 +00:00
|
|
|
error: struct must have exactly one field
|
|
|
|
--> $DIR/uri_display.rs:33:12
|
|
|
|
|
|
|
|
|
33 | struct Foo7(String, usize);
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: error occurred while deriving `UriDisplay`
|
|
|
|
--> $DIR/uri_display.rs:32:10
|
|
|
|
|
|
|
|
|
32 | #[derive(UriDisplayPath)]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: struct must have exactly one field
|
|
|
|
--> $DIR/uri_display.rs:37:1
|
|
|
|
|
|
|
|
|
37 | struct Foo8;
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: error occurred while deriving `UriDisplay`
|
|
|
|
--> $DIR/uri_display.rs:36:10
|
|
|
|
|
|
|
|
|
36 | #[derive(UriDisplayPath)]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: enums are not supported
|
|
|
|
--> $DIR/uri_display.rs:41:1
|
|
|
|
|
|
|
|
|
41 | enum Foo9 { }
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: error occurred while deriving `UriDisplay`
|
|
|
|
--> $DIR/uri_display.rs:40:10
|
|
|
|
|
|
|
|
|
40 | #[derive(UriDisplayPath)]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: named structs are not supported
|
|
|
|
--> $DIR/uri_display.rs:45:1
|
|
|
|
|
|
|
|
|
45 | / struct Foo10 {
|
|
|
|
46 | | //~^ ERROR not supported
|
|
|
|
47 | | named: usize
|
|
|
|
48 | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
note: error occurred while deriving `UriDisplay`
|
|
|
|
--> $DIR/uri_display.rs:44:10
|
|
|
|
|
|
|
|
|
44 | #[derive(UriDisplayPath)]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
2018-10-25 09:53:04 +00:00
|
|
|
|