1 // This test illustrates a case where full NLL (enabled by the feature
2 // switch below) produces superior diagnostics to the NLL-migrate
5 fn doit(data: &'static mut ()) {
7 //~^ ERROR lifetime may not live long enough
8 //~| ERROR `data` does not live long enough