Update compile error tests for databases.

This commit is contained in:
Jeb Rosen 2019-11-24 09:15:09 -08:00 committed by Sergio Benitez
parent df52616074
commit 6321797a74
1 changed files with 6 additions and 0 deletions

View File

@ -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