2020-09-03 05:41:31 +00:00
|
|
|
error: unexpected end of input, expected string literal
|
2023-06-09 23:46:24 +00:00
|
|
|
--> tests/ui-fail-stable/database-syntax.rs:27:1
|
|
|
|
|
|
|
|
|
27 | #[database]
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in the attribute macro `database` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
|
|
error: expected string literal
|
2023-06-09 23:46:24 +00:00
|
|
|
--> tests/ui-fail-stable/database-syntax.rs:30:12
|
|
|
|
|
|
|
|
|
30 | #[database(1)]
|
|
|
|
| ^
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
|
|
error: expected string literal
|
2023-06-09 23:46:24 +00:00
|
|
|
--> tests/ui-fail-stable/database-syntax.rs:33:12
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2023-06-09 23:46:24 +00:00
|
|
|
33 | #[database(123)]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: unexpected token
|
2023-06-09 23:46:24 +00:00
|
|
|
--> tests/ui-fail-stable/database-syntax.rs:36:20
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2023-06-09 23:46:24 +00:00
|
|
|
36 | #[database("hello" "hi")]
|
2020-07-20 22:02:10 +00:00
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: `database` attribute can only be used on structs
|
2023-06-09 23:46:24 +00:00
|
|
|
--> tests/ui-fail-stable/database-syntax.rs:40:1
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2023-06-09 23:46:24 +00:00
|
|
|
40 | enum Foo { }
|
2024-05-02 22:11:00 +00:00
|
|
|
| ^^^^^^^^^^^^^
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
|
|
error: `database` attribute can only be applied to structs with exactly one unnamed field
|
2023-10-27 01:25:33 +00:00
|
|
|
= help: example: `struct MyDatabase(diesel::SqliteConnection);`
|
2023-06-09 23:46:24 +00:00
|
|
|
--> tests/ui-fail-stable/database-syntax.rs:43:11
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2023-06-09 23:46:24 +00:00
|
|
|
43 | struct Bar(Connection, Connection);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
|
|
error: `database` attribute can only be used on structs
|
2023-06-09 23:46:24 +00:00
|
|
|
--> tests/ui-fail-stable/database-syntax.rs:46:1
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2023-06-09 23:46:24 +00:00
|
|
|
46 | union Baz { }
|
2024-05-02 22:11:00 +00:00
|
|
|
| ^^^^^^^^^^^^^^
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
|
|
error: `database` attribute cannot be applied to structs with generics
|
2023-06-09 23:46:24 +00:00
|
|
|
--> tests/ui-fail-stable/database-syntax.rs:49:9
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2023-06-09 23:46:24 +00:00
|
|
|
49 | struct E<'r>(&'r str);
|
2024-05-02 22:11:00 +00:00
|
|
|
| ^^^^
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
|
|
error: `database` attribute cannot be applied to structs with generics
|
2023-06-09 23:46:24 +00:00
|
|
|
--> tests/ui-fail-stable/database-syntax.rs:52:9
|
2020-07-20 22:02:10 +00:00
|
|
|
|
|
2023-06-09 23:46:24 +00:00
|
|
|
52 | struct F<T>(T);
|
2024-05-02 22:11:00 +00:00
|
|
|
| ^^^
|