Rocket/contrib/db_pools/codegen/tests/ui-fail-stable/database-syntax.stderr

118 lines
3.7 KiB
Plaintext
Raw Normal View History

2021-07-18 20:14:13 +00:00
error: invalid value: expected string literal
--> tests/ui-fail-stable/database-syntax.rs:4:12
2021-07-18 20:14:13 +00:00
|
4 | #[database(123)]
| ^^^
error: [note] error occurred while deriving `Database`
--> tests/ui-fail-stable/database-syntax.rs:3:10
2021-07-18 20:14:13 +00:00
|
3 | #[derive(Database)]
| ^^^^^^^^
|
2021-08-01 19:24:48 +00:00
= note: this error originates in the derive macro `Database` (in Nightly builds, run with -Z macro-backtrace for more info)
2021-07-18 20:14:13 +00:00
error: expected key/value `key = value`
--> tests/ui-fail-stable/database-syntax.rs:8:25
2021-07-18 20:14:13 +00:00
|
8 | #[database("some-name", "another")]
| ^^^^^^^^^
error: [note] error occurred while deriving `Database`
--> tests/ui-fail-stable/database-syntax.rs:7:10
2021-07-18 20:14:13 +00:00
|
7 | #[derive(Database)]
| ^^^^^^^^
|
2021-08-01 19:24:48 +00:00
= note: this error originates in the derive macro `Database` (in Nightly builds, run with -Z macro-backtrace for more info)
2021-07-18 20:14:13 +00:00
error: unexpected attribute parameter: `name`
--> tests/ui-fail-stable/database-syntax.rs:12:25
2021-07-18 20:14:13 +00:00
|
12 | #[database("some-name", name = "another")]
| ^^^^^^^^^^^^^^^^
2021-07-18 20:14:13 +00:00
error: [note] error occurred while deriving `Database`
--> tests/ui-fail-stable/database-syntax.rs:11:10
2021-07-18 20:14:13 +00:00
|
11 | #[derive(Database)]
| ^^^^^^^^
|
2021-08-01 19:24:48 +00:00
= note: this error originates in the derive macro `Database` (in Nightly builds, run with -Z macro-backtrace for more info)
2021-07-18 20:14:13 +00:00
error: enums are not supported
--> tests/ui-fail-stable/database-syntax.rs:16:1
2021-07-18 20:14:13 +00:00
|
16 | / #[database("foo")]
17 | | enum D { }
| |___________^
2021-07-18 20:14:13 +00:00
error: [note] error occurred while deriving `Database`
--> tests/ui-fail-stable/database-syntax.rs:15:10
2021-07-18 20:14:13 +00:00
|
15 | #[derive(Database)]
| ^^^^^^^^
|
2021-08-01 19:24:48 +00:00
= note: this error originates in the derive macro `Database` (in Nightly builds, run with -Z macro-backtrace for more info)
2021-07-18 20:14:13 +00:00
error: missing `#[database("name")]` attribute
--> tests/ui-fail-stable/database-syntax.rs:20:1
2021-07-18 20:14:13 +00:00
|
20 | struct E(deadpool_postgres::Pool);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2021-07-18 20:14:13 +00:00
error: [note] error occurred while deriving `Database`
--> tests/ui-fail-stable/database-syntax.rs:19:10
2021-07-18 20:14:13 +00:00
|
19 | #[derive(Database)]
| ^^^^^^^^
|
2021-08-01 19:24:48 +00:00
= note: this error originates in the derive macro `Database` (in Nightly builds, run with -Z macro-backtrace for more info)
2021-07-18 20:14:13 +00:00
error: struct must have exactly one unnamed field
--> tests/ui-fail-stable/database-syntax.rs:23:1
2021-07-18 20:14:13 +00:00
|
23 | / #[database("foo")]
24 | | struct F;
| |_________^
2021-07-18 20:14:13 +00:00
error: [note] error occurred while deriving `Database`
--> tests/ui-fail-stable/database-syntax.rs:22:10
2021-07-18 20:14:13 +00:00
|
22 | #[derive(Database)]
| ^^^^^^^^
|
2021-08-01 19:24:48 +00:00
= note: this error originates in the derive macro `Database` (in Nightly builds, run with -Z macro-backtrace for more info)
2021-07-18 20:14:13 +00:00
error: struct must have exactly one unnamed field
--> tests/ui-fail-stable/database-syntax.rs:27:1
2021-07-18 20:14:13 +00:00
|
27 | / #[database("foo")]
28 | | struct G(deadpool_postgres::Pool, deadpool_postgres::Pool);
| |___________________________________________________________^
2021-07-18 20:14:13 +00:00
error: [note] error occurred while deriving `Database`
--> tests/ui-fail-stable/database-syntax.rs:26:10
2021-07-18 20:14:13 +00:00
|
26 | #[derive(Database)]
| ^^^^^^^^
|
2021-08-01 19:24:48 +00:00
= note: this error originates in the derive macro `Database` (in Nightly builds, run with -Z macro-backtrace for more info)
2021-07-18 20:14:13 +00:00
error: named structs are not supported
--> tests/ui-fail-stable/database-syntax.rs:31:1
2021-07-18 20:14:13 +00:00
|
31 | / #[database("foo")]
32 | | struct H {
33 | | foo: deadpool_postgres::Pool,
34 | | }
| |_^
2021-07-18 20:14:13 +00:00
error: [note] error occurred while deriving `Database`
--> tests/ui-fail-stable/database-syntax.rs:30:10
2021-07-18 20:14:13 +00:00
|
30 | #[derive(Database)]
| ^^^^^^^^
|
2021-08-01 19:24:48 +00:00
= note: this error originates in the derive macro `Database` (in Nightly builds, run with -Z macro-backtrace for more info)