Rocket/core/lib/tests/twice_managed_state.rs

8 lines
150 B
Rust
Raw Normal View History

struct A;
#[rocket::async_test]
#[should_panic]
async fn twice_managed_state() {
let _ = rocket::ignite().manage(A).manage(A).inspect().await;
}