]>
Commit | Line | Data |
---|---|---|
416331ca XL |
1 | // This test illustrates a case where full NLL (enabled by the feature |
2 | // switch below) produces superior diagnostics to the NLL-migrate | |
3 | // mode. | |
4 | ||
416331ca XL |
5 | fn doit(data: &'static mut ()) { |
6 | || doit(data); | |
7 | //~^ ERROR lifetime may not live long enough | |
8 | //~| ERROR `data` does not live long enough | |
9 | } | |
10 | ||
11 | fn main() { } |