fn test_run_on_demand_cannot_access_event_loop()
Expand description
use winit::event_loop::EventLoop;
use winit::platform::run_on_demand::EventLoopExtRunOnDemand;

let mut event_loop = EventLoop::new().unwrap();
event_loop.run_on_demand(|_, _| {
    // Attempt to run the event loop re-entrantly; this must fail.
    event_loop.run_on_demand(|_, _| {});
});