mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-23 00:00:10 +02:00
macros: fix unresolved import in pin! (#2281)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user