From 6321797a746b4bcaa950b34a0a2f8e0dc1684ca7 Mon Sep 17 00:00:00 2001 From: Jeb Rosen Date: Sun, 24 Nov 2019 09:15:09 -0800 Subject: [PATCH] Update compile error tests for databases. --- contrib/codegen/tests/ui-fail/database-types.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/codegen/tests/ui-fail/database-types.rs b/contrib/codegen/tests/ui-fail/database-types.rs index 0cee2fe2..34bd3e7a 100644 --- a/contrib/codegen/tests/ui-fail/database-types.rs +++ b/contrib/codegen/tests/ui-fail/database-types.rs @@ -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: rocket_contrib::databases::Poolable +//~^^ ERROR is private +//~^^^ ERROR no method named `get` struct B(Vec); //~^ ERROR Vec: rocket_contrib::databases::Poolable