Update UI tests for latest stable.

This commit is contained in:
Sergio Benitez 2022-03-07 12:16:21 -08:00
parent 71e96d0d0d
commit 2cbaf05153
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ error[E0277]: the trait bound `Vec<i32>: Pool` is not satisfied
--> tests/ui-fail-stable/database-types.rs:11:10
|
11 | struct B(Vec<i32>);
| ^^^ the trait `Pool` is not implemented for `Vec<i32>`
| ^^^^^^^^ the trait `Pool` is not implemented for `Vec<i32>`
|
note: required by a bound in `rocket_db_pools::Database::Pool`
--> $WORKSPACE/contrib/db_pools/lib/src/database.rs

View File

@ -100,12 +100,12 @@ error: [note] this function cannot be `main`
| ^^^^
error[E0728]: `await` is only allowed inside `async` functions and blocks
--> tests/ui-fail-stable/async-entry.rs:73:17
--> tests/ui-fail-stable/async-entry.rs:73:41
|
72 | fn rocket() -> _ {
| ------ this is not `async`
73 | let _ = rocket::build().launch().await;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks
| ^^^^^^ only allowed inside `async` functions and blocks
error[E0308]: mismatched types
--> tests/ui-fail-stable/async-entry.rs:35:9