diff --git a/src/test/ui/impl-trait/static-return-lifetime-infered.nll.stderr b/src/test/ui/impl-trait/static-return-lifetime-infered.nll.stderr new file mode 100644 index 00000000000..7099316d694 --- /dev/null +++ b/src/test/ui/impl-trait/static-return-lifetime-infered.nll.stderr @@ -0,0 +1,26 @@ +warning: not reporting region error due to nll + --> $DIR/static-return-lifetime-infered.rs:17:16 + | +LL | self.x.iter().map(|a| a.0) + | ^^^^ + +warning: not reporting region error due to nll + --> $DIR/static-return-lifetime-infered.rs:21:16 + | +LL | self.x.iter().map(|a| a.0) + | ^^^^ + +error: free region `` does not outlive free region `'static` + --> $DIR/static-return-lifetime-infered.rs:17:9 + | +LL | self.x.iter().map(|a| a.0) + | ^^^^^^^^^^^^^ + +error: free region `'a` does not outlive free region `'static` + --> $DIR/static-return-lifetime-infered.rs:21:9 + | +LL | self.x.iter().map(|a| a.0) + | ^^^^^^^^^^^^^ + +error: aborting due to 2 previous errors +