summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/async-reference-generality.stderr
blob: af720ad29314f6818447dfbaf00d93f0f6fc5966 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
error[E0308]: mismatched types
  --> $DIR/async-reference-generality.rs:23:5
   |
LL | /     async {
LL | |         let _x = Struct::<Empty<&'static ()>, _>(PhantomData);
LL | |         async {}.await;
LL | |     }
   | |_____^ one type is more general than the other
   |
   = note: expected reference `&()`
              found reference `&()`

error[E0308]: mismatched types
  --> $DIR/async-reference-generality.rs:23:5
   |
LL | /     async {
LL | |         let _x = Struct::<Empty<&'static ()>, _>(PhantomData);
LL | |         async {}.await;
LL | |     }
   | |_____^ one type is more general than the other
   |
   = note: expected reference `&()`
              found reference `&()`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.