not-jan/apex-tux

error[E0658]: `impl Trait` in associated types is unstable

Closed this issue · 2 comments

I'm not sure if this issue is related to the tool itself, but I would like to report it:

   Compiling apex-music v0.1.0 (/home/luisalaguna/.cache/yay/apex-tux-git/src/apex-tux/apex-music)
error[E0658]: `impl Trait` in associated types is unstable
  --> apex-music/src/player.rs:74:31
   |
74 |     type MetadataFuture<'a> = impl Future<Output = Result<Self::Metadata>> + 'a
   |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
   = help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable

error[E0658]: `impl Trait` in associated types is unstable
  --> apex-music/src/player.rs:77:27
   |
77 |     type NameFuture<'a> = impl Future<Output = String>
   |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
   = help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable

error[E0658]: `impl Trait` in associated types is unstable
  --> apex-music/src/player.rs:80:37
   |
80 |     type PlaybackStatusFuture<'a> = impl Future<Output = Result<PlaybackStatus>>
   |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
   = help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable

error[E0658]: `impl Trait` in associated types is unstable
  --> apex-music/src/player.rs:83:31
   |
83 |     type PositionFuture<'a> = impl Future<Output = Result<i64>>
   |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
   = help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable

error[E0658]: `impl Trait` in associated types is unstable
   --> apex-music/src/player.rs:135:30
    |
135 |     type ArtistsFuture<'a> = impl Future<Output = Result<String>> + 'a
    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
    = help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable

error[E0658]: `impl Trait` in associated types is unstable
   --> apex-music/src/player.rs:138:29
    |
138 |     type LengthFuture<'a> = impl Future<Output = Result<u64>> + 'a
    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
    = help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable

error[E0658]: `impl Trait` in associated types is unstable
   --> apex-music/src/player.rs:141:28
    |
141 |     type TitleFuture<'a> = impl Future<Output = Result<String>> + 'a
    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
    = help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable

For more information about this error, try `rustc --explain E0658`.
error: could not compile `apex-music` (lib) due to 7 previous errors
warning: build failed, waiting for other jobs to finish...
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: apex-tux-git-exit status 4
checking dependencies...
:: kate optionally requires rust: Rust LSP support

Packages (1) rustup-1.26.0-3

Total Removed Size:  6.98 MiB

I'm installing this software on Manjaro Linux using yay which uses this repository.

██████████████████  ████████   luisalaguna@luis-rogstrixg713qrg713qr 
██████████████████  ████████   ------------------------------------- 
██████████████████  ████████   OS: Manjaro Linux x86_64 
██████████████████  ████████   Host: ROG Strix G713QR_G713QR 1.0 
████████            ████████   Kernel: 6.1.31-1-MANJARO 
████████  ████████  ████████   Uptime: 14 hours, 12 mins 
████████  ████████  ████████   Packages: 1451 (pacman) 
████████  ████████  ████████   Shell: bash 5.1.16 
████████  ████████  ████████   Resolution: 2560x1440, 3440x1440 
████████  ████████  ████████   DE: Plasma 5.27.5 
████████  ████████  ████████   WM: KWin 
████████  ████████  ████████   Theme: [Plasma], Colloid-Light [GTK2/3] 
████████  ████████  ████████   Icons: Qogir-manjaro [Plasma], Qogir-manjaro [GTK2/3] 
████████  ████████  ████████   Terminal: java 
                               CPU: AMD Ryzen 9 5900HX with Radeon Graphics (16) @ 3.300GHz 
                               GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series 
                               GPU: NVIDIA GeForce RTX 3070 Mobile / Max-Q 
                               Memory: 24842MiB / 31515MiB 

In short, you need to compile from source.

The aur repo isn't maintained, I did propose a pull request to update it no avail, the maintainer didn't respond.

@jehendeoff Well, it was fixed finally in your merge request.

Thank you!