mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-29 05:42:35 +00:00
ad36b769bc
...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.
8 lines
113 B
Rust
8 lines
113 B
Rust
struct A;
|
|
|
|
#[test]
|
|
#[should_panic]
|
|
fn twice_managed_state() {
|
|
let _ = rocket::build().manage(A).manage(A);
|
|
}
|