mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-18 00:00:09 +02:00
A step towards collapsing Tokio sub crates into a single `tokio` crate (#1318). The `net` implementation is now provided by the main `tokio` crate. Functionality can be opted out of by using the various net related feature flags.
26 lines
426 B
Rust
26 lines
426 B
Rust
use tests_build::tokio;
|
|
|
|
#[tokio::main]
|
|
fn main_is_not_async() {}
|
|
|
|
#[tokio::main(foo)]
|
|
async fn main_attr_has_unknown_args() {}
|
|
|
|
#[tokio::main(threadpool::bar)]
|
|
async fn main_attr_has_path_args() {}
|
|
|
|
#[tokio::test]
|
|
fn test_is_not_async() {}
|
|
|
|
#[tokio::test]
|
|
async fn test_fn_has_args(_x: u8) {}
|
|
|
|
#[tokio::test(foo)]
|
|
async fn test_attr_has_args() {}
|
|
|
|
#[tokio::test]
|
|
#[test]
|
|
async fn test_has_second_test_attr() {}
|
|
|
|
fn main() {}
|