mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-28 00:00:11 +02:00
These functions have object safety issues. It also has been decided to avoid vectored operations on the I/O traits. A later PR will bring back vectored operations on specific types that support them. Refs: #2879, #2716
11 lines
174 B
Rust
11 lines
174 B
Rust
#![warn(rust_2018_idioms)]
|
|
#![cfg(feature = "full")]
|
|
|
|
use tokio::io::AsyncRead;
|
|
|
|
#[test]
|
|
fn assert_obj_safe() {
|
|
fn _assert<T>() {}
|
|
_assert::<Box<dyn AsyncRead>>();
|
|
}
|