mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
udp: move tokio-udp into tokio-net (#1459)
This commit is contained in:
@@ -13,6 +13,12 @@ fn net_with_tcp() {
|
||||
use ui_tests::tokio_net::tcp;
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(feature = "net-with-udp")]
|
||||
fn net_with_udp() {
|
||||
use ui_tests::tokio_net::udp;
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(feature = "tokio-with-net")]
|
||||
fn tokio_with_net() {
|
||||
@@ -27,7 +33,10 @@ fn compile_fail() {
|
||||
t.compile_fail("tests/ui/executor_without_current_thread.rs");
|
||||
|
||||
#[cfg(feature = "net-no-features")]
|
||||
t.compile_fail("tests/ui/net_without_tcp_missing_tcp.rs");
|
||||
{
|
||||
t.compile_fail("tests/ui/net_without_tcp_missing_tcp.rs");
|
||||
t.compile_fail("tests/ui/net_without_udp_missing_udp.rs");
|
||||
}
|
||||
|
||||
#[cfg(feature = "tokio-no-features")]
|
||||
t.compile_fail("tests/ui/tokio_without_net_missing_net.rs");
|
||||
|
||||
Reference in New Issue
Block a user