mirror of https://github.com/rust-lang/rust
37 lines
1.6 KiB
Plaintext
37 lines
1.6 KiB
Plaintext
error[E0658]: associated const equality is incomplete
|
|
--> $DIR/issue-99828.rs:1:43
|
|
|
|
|
LL | fn get_iter(vec: &[i32]) -> impl Iterator<Item = {}> + '_ {
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: see issue #92827 <https://github.com/rust-lang/rust/issues/92827> for more information
|
|
= help: add `#![feature(associated_const_equality)]` 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: expected type, found constant
|
|
--> $DIR/issue-99828.rs:1:50
|
|
|
|
|
LL | fn get_iter(vec: &[i32]) -> impl Iterator<Item = {}> + '_ {
|
|
| ---- ^^ unexpected constant
|
|
| |
|
|
| expected a type because of this associated type
|
|
|
|
|
note: the associated type is defined here
|
|
--> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
|
|
|
|
error: expected type, found constant
|
|
--> $DIR/issue-99828.rs:1:50
|
|
|
|
|
LL | fn get_iter(vec: &[i32]) -> impl Iterator<Item = {}> + '_ {
|
|
| ---- ^^ unexpected constant
|
|
| |
|
|
| expected a type because of this associated type
|
|
|
|
|
note: the associated type is defined here
|
|
--> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|