@@ -46,32 +46,50 @@ LL | | }
46
46
| |_^
47
47
48
48
error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await.
49
- --> $DIR/await_holding_refcell_ref.rs:46:13
49
+ --> $DIR/await_holding_refcell_ref.rs:45:9
50
+ |
51
+ LL | let b = x.borrow_mut();
52
+ | ^
53
+ |
54
+ note: these are all the await points this ref is held through
55
+ --> $DIR/await_holding_refcell_ref.rs:45:5
56
+ |
57
+ LL | / let b = x.borrow_mut();
58
+ LL | |
59
+ LL | | let second = baz().await;
60
+ LL | |
61
+ ... |
62
+ LL | | first + second + third
63
+ LL | | }
64
+ | |_^
65
+
66
+ error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await.
67
+ --> $DIR/await_holding_refcell_ref.rs:60:13
50
68
|
51
69
LL | let b = x.borrow_mut();
52
70
| ^
53
71
|
54
72
note: these are all the await points this ref is held through
55
- --> $DIR/await_holding_refcell_ref.rs:46 :9
73
+ --> $DIR/await_holding_refcell_ref.rs:60 :9
56
74
|
57
75
LL | / let b = x.borrow_mut();
58
76
LL | | baz().await
59
77
LL | | };
60
78
| |_____^
61
79
62
80
error: this RefCell Ref is held across an 'await' point. Consider ensuring the Ref is dropped before calling await.
63
- --> $DIR/await_holding_refcell_ref.rs:58 :13
81
+ --> $DIR/await_holding_refcell_ref.rs:72 :13
64
82
|
65
83
LL | let b = x.borrow_mut();
66
84
| ^
67
85
|
68
86
note: these are all the await points this ref is held through
69
- --> $DIR/await_holding_refcell_ref.rs:58 :9
87
+ --> $DIR/await_holding_refcell_ref.rs:72 :9
70
88
|
71
89
LL | / let b = x.borrow_mut();
72
90
LL | | baz().await
73
91
LL | | }
74
92
| |_____^
75
93
76
- error: aborting due to 5 previous errors
94
+ error: aborting due to 6 previous errors
77
95
0 commit comments