error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied
--> src/lib.rs:3:1
|
3 | #[async_trait::async_trait]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: remove these generics
| |
| expected 0 generic arguments
|
note: struct defined here, with 0 generic parameters
--> src/lib.rs:1:8
|
1 | struct Box;
| ^^^
= note: this error originates in the attribute macro `async_trait::async_trait` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied
--> src/lib.rs:8:1
|
8 | #[async_trait::async_trait]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: remove these generics
| |
| expected 0 generic arguments
|
note: struct defined here, with 0 generic parameters
--> src/lib.rs:1:8
|
1 | struct Box;
| ^^^
= note: this error originates in the attribute macro `async_trait::async_trait` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: no function or associated item named `pin` found for struct `Box` in the current scope
--> src/lib.rs:10:26
|
1 | struct Box;
| ---------- function or associated item `pin` not found for this struct
...
10 | async fn oops(&self) {}
| ^^ function or associated item not found in `Box`
It turns out that some crate decided to create a type called
Box
... ooof.