Rocket/core/lib/tests/twice_managed_state.rs
Sergio Benitez ad36b769bc Rename 'rocket::ignite()' to 'rocket::build()'.
...because loading up a Rocket while it's ignited is a bad idea.

More seriously, because 'Rocket.ignite()' will become an "execute
everything up to here" method.
2021-04-08 01:07:52 -07:00

8 lines
113 B
Rust

struct A;
#[test]
#[should_panic]
fn twice_managed_state() {
let _ = rocket::build().manage(A).manage(A);
}