mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
macros: fix unresolved import in pin! (#2281)
This commit is contained in:
parent
f0d18653a6
commit
937ae11f37
@ -138,7 +138,7 @@ macro_rules! pin {
|
||||
)*) => {
|
||||
$(
|
||||
let $x = $init;
|
||||
crate::pin!($x);
|
||||
$crate::pin!($x);
|
||||
)*
|
||||
};
|
||||
}
|
||||
|
@ -1,11 +1,9 @@
|
||||
use tokio::pin;
|
||||
|
||||
async fn one() {}
|
||||
async fn two() {}
|
||||
|
||||
#[tokio::test]
|
||||
async fn multi_pin() {
|
||||
pin! {
|
||||
tokio::pin! {
|
||||
let f1 = one();
|
||||
let f2 = two();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user