Add a test verifying that attempting to manage the same state type twice panics.

This commit is contained in:
Jeb Rosen 2020-06-14 08:57:55 -07:00 committed by Sergio Benitez
parent e72058de81
commit 7a62653cdd
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
struct A;
#[rocket::async_test]
#[should_panic]
async fn twice_managed_state() {
let _ = rocket::ignite().manage(A).manage(A).inspect().await;
}