Hello Omar,
I try to test this example but I get compile errors! Do you know what is the problem? Regards, Greger Sernemar
error[E0635]: unknown feature impl_trait_projections
--> /Users/greggoogelgs/.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/lib.rs:2:59
|
2 | #![cfg_attr(feature = "async", feature(async_fn_in_trait, impl_trait_projections))]
| ^^^^^^^^^^^^^^^^^^^^^^
Compiling cortex-m v0.7.7
Compiling futures-channel v0.3.25
error[E0760]: async fn return type cannot contain a projection or Self that references lifetimes from a parent scope
--> /Users/greggoogelgs/.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-io-0.4.0/src/asynch.rs:86:49
|
86 | async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> {
| ^^^^^^^^^^^^^^----^^^^^^^^
| |
| help: consider spelling out the type instead: <&mut T as asynch::Read>