@@ -7,7 +7,7 @@ LL | async fn buy_lock(coroutine: &Mutex<MarketMultiplier>) -> LockedMarket<'_>
7
7
| expected 0 lifetime arguments
8
8
|
9
9
note: struct defined here, with 0 lifetime parameters
10
- --> $DIR/issue-82126-mismatched-subst-and-hir.rs:23 :8
10
+ --> $DIR/issue-82126-mismatched-subst-and-hir.rs:22 :8
11
11
|
12
12
LL | struct LockedMarket<T>(T);
13
13
| ^^^^^^^^^^^^
@@ -19,7 +19,7 @@ LL | async fn buy_lock(coroutine: &Mutex<MarketMultiplier>) -> LockedMarket<'_>
19
19
| ^^^^^^^^^^^^ expected 1 generic argument
20
20
|
21
21
note: struct defined here, with 1 generic parameter: `T`
22
- --> $DIR/issue-82126-mismatched-subst-and-hir.rs:23 :8
22
+ --> $DIR/issue-82126-mismatched-subst-and-hir.rs:22 :8
23
23
|
24
24
LL | struct LockedMarket<T>(T);
25
25
| ^^^^^^^^^^^^ -
@@ -28,16 +28,6 @@ help: add missing generic argument
28
28
LL | async fn buy_lock(coroutine: &Mutex<MarketMultiplier>) -> LockedMarket<'_, T> {
29
29
| +++
30
30
31
- error[E0515]: cannot return value referencing temporary value
32
- --> $DIR/issue-82126-mismatched-subst-and-hir.rs:19:5
33
- |
34
- LL | LockedMarket(coroutine.lock().unwrap().buy())
35
- | ^^^^^^^^^^^^^-------------------------^^^^^^^
36
- | | |
37
- | | temporary value created here
38
- | returns a value referencing data owned by the current function
39
-
40
- error: aborting due to 3 previous errors
31
+ error: aborting due to 2 previous errors
41
32
42
- Some errors have detailed explanations: E0107, E0515.
43
- For more information about an error, try `rustc --explain E0107`.
33
+ For more information about this error, try `rustc --explain E0107`.
0 commit comments