Skip to content

Commit

Permalink
Update compile error tests for databases.
Browse files Browse the repository at this point in the history
  • Loading branch information
jebrosen authored and SergioBenitez committed Jul 11, 2020
1 parent a1bf001 commit beb98ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/codegen/tests/ui-fail/database-types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ extern crate rocket;
struct Unknown;

#[database("foo")]
//~^ ERROR Unknown: rocket_contrib::databases::Poolable
//~^^ ERROR is private
//~^^^ ERROR no method named `get`
struct A(Unknown);
//~^ ERROR Unknown: rocket_contrib::databases::Poolable

#[database("foo")]
//~^ ERROR Vec<i32>: rocket_contrib::databases::Poolable
//~^^ ERROR is private
//~^^^ ERROR no method named `get`
struct B(Vec<i32>);
//~^ ERROR Vec<i32>: rocket_contrib::databases::Poolable

Expand Down

0 comments on commit beb98ac

Please sign in to comment.