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

57 lines
1.6 KiB
Plaintext

error: unexpected end of input, expected string literal
--> 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)
error: expected string literal
--> tests/ui-fail-stable/database-syntax.rs:30:12
|
30 | #[database(1)]
| ^
error: expected string literal
--> tests/ui-fail-stable/database-syntax.rs:33:12
|
33 | #[database(123)]
| ^^^
error: unexpected token
--> tests/ui-fail-stable/database-syntax.rs:36:20
|
36 | #[database("hello" "hi")]
| ^^^^
error: `database` attribute can only be used on structs
--> tests/ui-fail-stable/database-syntax.rs:40:1
|
40 | enum Foo { }
| ^^^^
error: `database` attribute can only be applied to structs with exactly one unnamed field
--- help: example: `struct MyDatabase(diesel::SqliteConnection);`
--> tests/ui-fail-stable/database-syntax.rs:43:11
|
43 | struct Bar(Connection, Connection);
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: `database` attribute can only be used on structs
--> tests/ui-fail-stable/database-syntax.rs:46:1
|
46 | union Baz { }
| ^^^^^
error: `database` attribute cannot be applied to structs with generics
--> tests/ui-fail-stable/database-syntax.rs:49:9
|
49 | struct E<'r>(&'r str);
| ^
error: `database` attribute cannot be applied to structs with generics
--> tests/ui-fail-stable/database-syntax.rs:52:9
|
52 | struct F<T>(T);
| ^