From aaf78a5265492fe3240529287d22947582ebd1b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20K=C3=BCber?= Date: Fri, 8 Jun 2018 21:08:29 -0700 Subject: [PATCH] Add nll test output --- .../static-return-lifetime-infered.nll.stderr | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/test/ui/impl-trait/static-return-lifetime-infered.nll.stderr 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 +