Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ in a trait produces the following error:
[rust-lang/rust#62149]: https://github.com/rust-lang/rust/issues/62149

```rust
#![feature(async_await)]

trait MyTrait {
async fn f() {}
}
Expand All @@ -41,8 +39,6 @@ The only thing to notice here is that we write an `#[async_trait]` macro on top
of traits and trait impls that contain async fn, and then they work.

```rust
#![feature(async_await)]

use async_trait::async_trait;

#[async_trait]
Expand Down
14 changes: 0 additions & 14 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
//! [rust-lang/rust#62149]: https://github.com/rust-lang/rust/issues/62149
//!
//! ```compile_fail
//! #![feature(async_await)]
//!
//! trait MyTrait {
//! async fn f() {}
//! }
Expand All @@ -36,8 +34,6 @@
//! top of traits and trait impls that contain async fn, and then they work.
//!
//! ```
//! #![feature(async_await)]
//!
//! use async_trait::async_trait;
//!
//! #[async_trait]
Expand Down Expand Up @@ -156,8 +152,6 @@
//! error message.
//!
//! ```compile_fail
//! # #![feature(async_await)]
//! #
//! # use async_trait::async_trait;
//! #
//! type Elided<'a> = &'a usize;
Expand All @@ -179,8 +173,6 @@
//! The fix is to name the lifetime or use `'_`.
//!
//! ```
//! # #![feature(async_await)]
//! #
//! # use async_trait::async_trait;
//! #
//! # type Elided<'a> = &'a usize;
Expand All @@ -206,8 +198,6 @@
//! by value, no associated types, etc.
//!
//! ```
//! # #![feature(async_await)]
//! #
//! # use async_trait::async_trait;
//! #
//! #[async_trait]
Expand Down Expand Up @@ -262,8 +252,6 @@
//! the default implementations are applicable to them:
//!
//! ```
//! # #![feature(async_await)]
//! #
//! # use async_trait::async_trait;
//! #
//! #[async_trait]
Expand All @@ -285,8 +273,6 @@
//! bounding them with `Self: Sized`:
//!
//! ```
//! # #![feature(async_await)]
//! #
//! # use async_trait::async_trait;
//! #
//! #[async_trait]
Expand Down
2 changes: 0 additions & 2 deletions tests/test.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(async_await)]

use async_trait::async_trait;

#[async_trait]
Expand Down