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