@@ -7,7 +7,7 @@ LL | async fn buy_lock(coroutine: &Mutex<MarketMultiplier>) -> LockedMarket<'_>
77 | expected 0 lifetime arguments
88 |
99note: 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
1111 |
1212LL | struct LockedMarket<T>(T);
1313 | ^^^^^^^^^^^^
@@ -19,7 +19,7 @@ LL | async fn buy_lock(coroutine: &Mutex<MarketMultiplier>) -> LockedMarket<'_>
1919 | ^^^^^^^^^^^^ expected 1 generic argument
2020 |
2121note: 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
2323 |
2424LL | struct LockedMarket<T>(T);
2525 | ^^^^^^^^^^^^ -
@@ -28,16 +28,6 @@ help: add missing generic argument
2828LL | async fn buy_lock(coroutine: &Mutex<MarketMultiplier>) -> LockedMarket<'_, T> {
2929 | +++
3030
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
4132
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