Rocket/contrib/sync_db_pools/codegen/tests/ui-fail-nightly/database-syntax.stderr
Sergio Benitez 5a4e66ec43 Split 'rocket_contrib' into distinct crates.
This follows the completed graduation of stable contrib features into
core, removing 'rocket_contrib' in its entirety in favor of two new
crates. These crates are versioned independently of Rocket's core
libraries, allowing upgrades to dependencies without consideration for
versions in core libraries.

'rocket_dyn_templates' replaces the contrib 'templates' features. While
largely a 1-to-1 copy, it makes the following changes:

  * the 'tera_templates' feature is now 'tera'
  * the 'handlebars_templates' feature is now 'handlebars'
  * fails to compile if neither 'tera' nor 'handlebars' is enabled

'rocket_sync_db_pools' replaces the contrib 'database' features. It
makes no changes to the replaced features except that the `database`
attribute is properly documented at the crate root.
2021-05-24 22:57:51 -07:00

58 lines
1.5 KiB
Plaintext

error: unexpected end of input, expected string literal
--> $DIR/database-syntax.rs:6:1
|
6 | #[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
--> $DIR/database-syntax.rs:9:12
|
9 | #[database(1)]
| ^
error: expected string literal
--> $DIR/database-syntax.rs:12:12
|
12 | #[database(123)]
| ^^^
error: unexpected token
--> $DIR/database-syntax.rs:15:20
|
15 | #[database("hello" "hi")]
| ^^^^
error: `database` attribute can only be used on structs
--> $DIR/database-syntax.rs:19:1
|
19 | enum Foo { }
| ^^^^^^^^^^^^^
error: `database` attribute can only be applied to structs with exactly one unnamed field
--> $DIR/database-syntax.rs:22:11
|
22 | struct Bar(diesel::SqliteConnection, diesel::SqliteConnection);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: example: `struct MyDatabase(diesel::SqliteConnection);`
error: `database` attribute can only be used on structs
--> $DIR/database-syntax.rs:25:1
|
25 | union Baz { }
| ^^^^^^^^^^^^^^
error: `database` attribute cannot be applied to structs with generics
--> $DIR/database-syntax.rs:28:9
|
28 | struct E<'r>(&'r str);
| ^^^^
error: `database` attribute cannot be applied to structs with generics
--> $DIR/database-syntax.rs:31:9
|
31 | struct F<T>(T);
| ^^^