Skip to content

Commit 0796fc3

Browse files
committed
Update compile error tests for databases.
1 parent 8801988 commit 0796fc3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contrib/codegen/tests/ui-fail/database-types.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ extern crate rocket;
44
struct Unknown;
55

66
#[database("foo")]
7+
//~^ ERROR Unknown: rocket_contrib::databases::Poolable
8+
//~^^ ERROR is private
9+
//~^^^ ERROR no method named `get`
710
struct A(Unknown);
811
//~^ ERROR Unknown: rocket_contrib::databases::Poolable
912

1013
#[database("foo")]
14+
//~^ ERROR Vec<i32>: rocket_contrib::databases::Poolable
15+
//~^^ ERROR is private
16+
//~^^^ ERROR no method named `get`
1117
struct B(Vec<i32>);
1218
//~^ ERROR Vec<i32>: rocket_contrib::databases::Poolable
1319

0 commit comments

Comments
 (0)