Skip to content

Commit ad10864

Browse files
committed
Update tests for Rust 1.89
1 parent b121ee4 commit ad10864

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

tests/compile-fail/tracked_fn_return_ref.stderr

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,6 @@ help: consider using the `'db` lifetime
99
33 | ) -> ContainsRef<'db> {
1010
| +++++
1111

12-
warning: elided lifetime has a name
13-
--> tests/compile-fail/tracked_fn_return_ref.rs:33:6
14-
|
15-
30 | fn tracked_fn_return_struct_containing_ref_elided_implicit<'db>(
16-
| --- lifetime `'db` declared here
17-
...
18-
33 | ) -> ContainsRef {
19-
| ^^^^^^^^^^^ this elided lifetime gets resolved as `'db`
20-
|
21-
= note: `#[warn(elided_named_lifetimes)]` on by default
22-
23-
warning: elided lifetime has a name
24-
--> tests/compile-fail/tracked_fn_return_ref.rs:43:18
25-
|
26-
40 | fn tracked_fn_return_struct_containing_ref_elided_explicit<'db>(
27-
| --- lifetime `'db` declared here
28-
...
29-
43 | ) -> ContainsRef<'_> {
30-
| ^^ this elided lifetime gets resolved as `'db`
31-
3212
error: lifetime may not live long enough
3313
--> tests/compile-fail/tracked_fn_return_ref.rs:15:67
3414
|

tests/compile_fail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![cfg(feature = "inventory")]
22

3-
#[rustversion::all(stable, since(1.84))]
3+
#[rustversion::all(stable, since(1.89))]
44
#[test]
55
fn compile_fail() {
66
let t = trybuild::TestCases::new();

0 commit comments

Comments
 (0)