Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/99828.rs: fixed with errors #1367

Merged
merged 1 commit into from
Jul 31, 2022
Merged

ices/99828.rs: fixed with errors #1367

merged 1 commit into from
Jul 31, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#99828

fn get_iter(vec: &[i32]) -> impl Iterator<Item = {}> + '_ {
    vec.iter()
}

fn main() {
    let vec = Vec::new();
    let mut iter = get_iter(&vec);
    iter.next();
}
=== stdout ===
=== stderr ===
error[E0658]: associated const equality is incomplete
 --> /home/runner/work/glacier/glacier/ices/99828.rs:1:43
  |
1 | 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

error: expected associated type bound, found constant
 --> /home/runner/work/glacier/glacier/ices/99828.rs:1:43
  |
1 | fn get_iter(vec: &[i32]) -> impl Iterator<Item = {}> + '_ {
  |                                           ^^^^^^^^^
  |
note: associated type defined here

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
==============

=== stdout ===
=== stderr ===
error[E0658]: associated const equality is incomplete
 --> /home/runner/work/glacier/glacier/ices/99828.rs:1:43
  |
1 | fn get_iter(vec: &[i32]) -> impl Iterator<Item = {}> + '_ {
  |                                           ^^^^^^^^^
  |
  = note: see issue #92827 <rust-lang/rust#92827> for more information
  = help: add `#![feature(associated_const_equality)]` to the crate attributes to enable

error: expected associated type bound, found constant
 --> /home/runner/work/glacier/glacier/ices/99828.rs:1:43
  |
1 | fn get_iter(vec: &[i32]) -> impl Iterator<Item = {}> + '_ {
  |                                           ^^^^^^^^^
  |
note: associated type defined here

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
==============
@JohnTitor JohnTitor merged commit 32bdefb into master Jul 31, 2022
@JohnTitor JohnTitor deleted the autofix/ices/99828.rs branch July 31, 2022 08:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants