]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-82126-mismatched-subst-and-hir.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / issue-82126-mismatched-subst-and-hir.stderr
1 error[E0107]: this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
2   --> $DIR/issue-82126-mismatched-subst-and-hir.rs:16:59
3    |
4 LL | async fn buy_lock(generator: &Mutex<MarketMultiplier>) -> LockedMarket<'_> {
5    |                                                           ^^^^^^^^^^^^---- help: remove these generics
6    |                                                           |
7    |                                                           expected 0 lifetime arguments
8    |
9 note: struct defined here, with 0 lifetime parameters
10   --> $DIR/issue-82126-mismatched-subst-and-hir.rs:22:8
11    |
12 LL | struct LockedMarket<T>(T);
13    |        ^^^^^^^^^^^^
14
15 error[E0107]: this struct takes 1 generic argument but 0 generic arguments were supplied
16   --> $DIR/issue-82126-mismatched-subst-and-hir.rs:16:59
17    |
18 LL | async fn buy_lock(generator: &Mutex<MarketMultiplier>) -> LockedMarket<'_> {
19    |                                                           ^^^^^^^^^^^^ expected 1 generic argument
20    |
21 note: struct defined here, with 1 generic parameter: `T`
22   --> $DIR/issue-82126-mismatched-subst-and-hir.rs:22:8
23    |
24 LL | struct LockedMarket<T>(T);
25    |        ^^^^^^^^^^^^ -
26 help: add missing generic argument
27    |
28 LL | async fn buy_lock(generator: &Mutex<MarketMultiplier>) -> LockedMarket<'_, T> {
29    |                                                                          +++
30
31 error: aborting due to 2 previous errors
32
33 For more information about this error, try `rustc --explain E0107`.