]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/snocat-regression.rs
Rollup merge of #103146 - joboet:cleanup_pthread_condvar, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / snocat-regression.rs
1 // Regression test from https://github.com/rust-lang/rust/pull/98109
2
3 pub fn negotiate<S>(link: S)
4 where
5     for<'a> &'a S: 'a,
6 {
7     || {
8         //~^ ERROR `S` does not live long enough
9         //
10         // FIXME(#98437). This regressed at some point and
11         // probably should work.
12         let _x = link;
13     };
14 }
15
16 fn main() {}