mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
50 lines
2.1 KiB
Plaintext
50 lines
2.1 KiB
Plaintext
error[E0658]: `impl Trait` in associated types is unstable
|
|
--> $DIR/feature-gate-impl_trait_in_assoc_type.rs:6:16
|
|
|
|
|
LL | type Bar = impl std::fmt::Debug;
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= 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
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error[E0658]: `impl Trait` in associated types is unstable
|
|
--> $DIR/feature-gate-impl_trait_in_assoc_type.rs:14:16
|
|
|
|
|
LL | type Bop = impl std::fmt::Debug;
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= 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
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error: unconstrained opaque type
|
|
--> $DIR/feature-gate-impl_trait_in_assoc_type.rs:6:16
|
|
|
|
|
LL | type Bar = impl std::fmt::Debug;
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `Bar` must be used in combination with a concrete type within the same impl
|
|
|
|
error[E0658]: inherent associated types are unstable
|
|
--> $DIR/feature-gate-impl_trait_in_assoc_type.rs:14:5
|
|
|
|
|
LL | type Bop = impl std::fmt::Debug;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #8995 <https://github.com/rust-lang/rust/issues/8995> for more information
|
|
= help: add `#![feature(inherent_associated_types)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error: unconstrained opaque type
|
|
--> $DIR/feature-gate-impl_trait_in_assoc_type.rs:14:16
|
|
|
|
|
LL | type Bop = impl std::fmt::Debug;
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `Bop` must be used in combination with a concrete type within the same impl
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|