Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 0b1dbe8

Browse files
ices/82126.rs: fixed with errors (#660)
=== stdout === === stderr === error[E0107]: this struct takes 0 lifetime arguments but 1 lifetime argument was supplied --> /home/runner/work/glacier/glacier/ices/82126.rs:11:59 | 11 | async fn buy_lock(generator: &Mutex<MarketMultiplier>) -> LockedMarket<'_> { | ^^^^^^^^^^^^---- help: remove these generics | | | expected 0 lifetime arguments | note: struct defined here, with 0 lifetime parameters --> /home/runner/work/glacier/glacier/ices/82126.rs:15:8 | 15 | struct LockedMarket<T>(T); | ^^^^^^^^^^^^ error[E0107]: this struct takes 1 type argument but 0 type arguments were supplied --> /home/runner/work/glacier/glacier/ices/82126.rs:11:59 | 11 | async fn buy_lock(generator: &Mutex<MarketMultiplier>) -> LockedMarket<'_> { | ^^^^^^^^^^^^ expected 1 type argument | note: struct defined here, with 1 type parameter: `T` --> /home/runner/work/glacier/glacier/ices/82126.rs:15:8 | 15 | struct LockedMarket<T>(T); | ^^^^^^^^^^^^ - help: add missing type argument | 11 | async fn buy_lock(generator: &Mutex<MarketMultiplier>) -> LockedMarket<'_, T> { | ^^^ error[E0515]: cannot return value referencing temporary value --> /home/runner/work/glacier/glacier/ices/82126.rs:12:5 | 12 | LockedMarket(generator.lock().unwrap().buy()) | ^^^^^^^^^^^^^-------------------------^^^^^^^ | | | | | temporary value created here | returns a value referencing data owned by the current function error: aborting due to 3 previous errors Some errors have detailed explanations: E0107, E0515. For more information about an error, try `rustc --explain E0107`. ============== Co-authored-by: rustbot <[email protected]>
1 parent 7270038 commit 0b1dbe8

File tree

1 file changed

+0
-0
lines changed

1 file changed

+0
-0
lines changed
File renamed without changes.

0 commit comments

Comments
 (0)