Skip to content

Commit 56af59f

Browse files
committed
ui test is broken too
1 parent 41516d7 commit 56af59f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use pgrx::prelude::*;
33
#[pg_extern]
44
fn returns_tuple_with_lifetime(
55
value: &'static str,
6-
) -> TableIterator<(name!(a, &'static str), name!(b, Option<&'static str>))> {
6+
) -> TableIterator<'static, (name!(a, &'static str), name!(b, Option<&'static str>))> {
77
TableIterator::once((value, Some(value)))
88
}
99

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
error[E0521]: borrowed data escapes outside of function
2-
--> tests/compile-fail/table-iterators-arent-immortal.rs:6:78
2+
--> tests/compile-fail/table-iterators-arent-immortal.rs:6:87
33
|
44
3 | #[pg_extern]
55
| ------------
66
| |
77
| lifetime `'fcx` defined here
88
| in this procedural macro expansion
99
...
10-
6 | ) -> TableIterator<(name!(a, &'static str), name!(b, Option<&'static str>))> {
11-
| ______________________________________________________________________________^
10+
6 | ) -> TableIterator<'static, (name!(a, &'static str), name!(b, Option<&'static str>))> {
11+
| _______________________________________________________________________________________^
1212
7 | | TableIterator::once((value, Some(value)))
1313
8 | | }
1414
| | ^

0 commit comments

Comments
 (0)