File tree Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -9,26 +9,6 @@ help: consider using the `'db` lifetime
9933 | ) -> 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-
3212error: lifetime may not live long enough
3313 --> tests/compile-fail/tracked_fn_return_ref.rs:15:67
3414 |
Original file line number Diff line number Diff line change 11#![ cfg( feature = "inventory" ) ]
22
3- #[ rustversion:: all( stable, since( 1.84 ) ) ]
3+ #[ rustversion:: all( stable, since( 1.89 ) ) ]
44#[ test]
55fn compile_fail ( ) {
66 let t = trybuild:: TestCases :: new ( ) ;
You can’t perform that action at this time.
0 commit comments