diff --git a/futures-util/src/compat/compat01as03.rs b/futures-util/src/compat/compat01as03.rs index 5116d03d0a..562a7ad170 100644 --- a/futures-util/src/compat/compat01as03.rs +++ b/futures-util/src/compat/compat01as03.rs @@ -383,10 +383,6 @@ mod io { /// # futures::executor::block_on(async { /// use futures::io::AsyncReadExt; /// use futures_util::compat::AsyncRead01CompatExt; - /// - /// fn create_async_read_cursor<'a>(input: &'a [u8]) -> impl futures::io::AsyncRead + Unpin + 'a { - /// std::io::Cursor::new(input).compat() - /// } /// /// let input = b"Hello World!"; /// let reader /* : impl tokio_io::AsyncRead */ = std::io::Cursor::new(input); diff --git a/futures/tests/stream.rs b/futures/tests/stream.rs index 82f5671746..1e04450008 100644 --- a/futures/tests/stream.rs +++ b/futures/tests/stream.rs @@ -311,6 +311,7 @@ fn take_until() { } #[cfg(feature = "executor")] // executor:: +#[test] #[should_panic] fn ready_chunks_panic_on_cap_zero() { use futures::channel::mpsc;