lighkLife / embassy-cn

Embassy 中文文档
https://lighklife.github.io/embassy-cn
0 stars 4 forks source link

build error with `impl Trait` in type aliases is unstable #6

Open lighkLife opened 10 months ago

lighkLife commented 10 months ago
error[E0658]: `impl Trait` in type aliases is unstable
  --> src/main.rs:81:1
   |
81 | #[embassy_executor::task]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
   = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
   = note: this error originates in the attribute macro `embassy_executor::task` (in Nightly builds, run with -Z macro-backtrace for more info)
lighkLife commented 10 months ago

embassy 使用到到了 rust nighty 版本中的接口类型别名特性,因此需要