]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/async-reference-generality.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / async-reference-generality.stderr
1 error[E0308]: mismatched types
2   --> $DIR/async-reference-generality.rs:23:5
3    |
4 LL | /     async {
5 LL | |         let _x = Struct::<Empty<&'static ()>, _>(PhantomData);
6 LL | |         async {}.await;
7 LL | |     }
8    | |_____^ one type is more general than the other
9    |
10    = note: expected reference `&()`
11               found reference `&()`
12
13 error[E0308]: mismatched types
14   --> $DIR/async-reference-generality.rs:23:5
15    |
16 LL | /     async {
17 LL | |         let _x = Struct::<Empty<&'static ()>, _>(PhantomData);
18 LL | |         async {}.await;
19 LL | |     }
20    | |_____^ one type is more general than the other
21    |
22    = note: expected reference `&()`
23               found reference `&()`
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0308`.