Skip to content

Commit 8183edb

Browse files
committed
TRYBUILD=overwrite cargo test --features pg14
1 parent e7fd0ef commit 8183edb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pgrx-tests/tests/compile-fail/table-iterators-arent-immortal.stderr

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
warning: elided lifetime has a name
2+
--> tests/compile-fail/table-iterators-arent-immortal.rs:6:19
3+
|
4+
6 | ) -> TableIterator<(name!(a, &'static str), name!(b, Option<&'static str>))> {
5+
| ^ this elided lifetime gets resolved as `'static`
6+
|
7+
= note: `#[warn(elided_named_lifetimes)]` on by default
8+
help: consider specifying it explicitly
9+
|
10+
6 | ) -> TableIterator<'static, (name!(a, &'static str), name!(b, Option<&'static str>))> {
11+
| ++++++++
12+
113
error[E0521]: borrowed data escapes outside of function
214
--> tests/compile-fail/table-iterators-arent-immortal.rs:6:78
315
|

0 commit comments

Comments
 (0)