Coder Social home page Coder Social logo

Comments (3)

workingjubilee avatar workingjubilee commented on May 29, 2024 7

marco?

proco!

from rust.

apiraino avatar apiraino commented on May 29, 2024

WG-prioritization assigning priority (Zulip discussion).

@rustbot label -I-prioritize +P-medium

from rust.

MingweiSamuel avatar MingweiSamuel commented on May 29, 2024

Had a similar regression bisected to 1ca424c

Example

Before:

error[E0277]: `{integer}` is not an iterator
 --> tests/compile-fail/surface_source_iter_badtype.rs:5:21
  |
5 |         source_iter(5) -> for_each(std::mem::drop);
  |         ------------^-
  |         |           |
  |         |           `{integer}` is not an iterator
  |         required by a bound introduced by this call
  |
  = help: the trait `Iterator` is not implemented for `{integer}`, which is required by `{integer}: IntoIterator`
  = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
  = note: required for `{integer}` to implement `IntoIterator`
note: required by a bound in `check_iter`
 --> tests/compile-fail/surface_source_iter_badtype.rs:5:9
  |
5 |         source_iter(5) -> for_each(std::mem::drop);
  |         ^^^^^^^^^^^^^^ required by this bound in `check_iter`

After

error[E0277]: `{integer}` is not an iterator
 --> tests/compile-fail/surface_source_iter_badtype.rs:5:21
  |
5 |         source_iter(5) -> for_each(std::mem::drop);
  |         ------------^-
  |         |           |
  |         |           `{integer}` is not an iterator
  |         required by a bound introduced by this call
  |
  = help: the trait `Iterator` is not implemented for `{integer}`, which is required by `{integer}: IntoIterator`
  = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
  = note: required for `{integer}` to implement `IntoIterator`
note: required by a bound in `check_iter`
 --> tests/compile-fail/surface_source_iter_badtype.rs:5:9
  |
5 |         source_iter(5) -> for_each(std::mem::drop);
  |         ^^^^^^^^^^^^^^ required by this bound in `check_iter`

error[E0277]: `{integer}` is not an iterator
 --> tests/compile-fail/surface_source_iter_badtype.rs:5:9
  |
5 |         source_iter(5) -> for_each(std::mem::drop);
  |         ^^^^^^^^^^^^^^ `{integer}` is not an iterator
  |
  = help: the trait `Iterator` is not implemented for `{integer}`, which is required by `{integer}: IntoIterator`
  = note: required for `{integer}` to implement `IntoIterator`
note: required by a bound in `check_iter`
 --> tests/compile-fail/surface_source_iter_badtype.rs:5:9
  |
5 |         source_iter(5) -> for_each(std::mem::drop);
  |         ^^^^^^^^^^^^^^ required by this bound in `check_iter`

error[E0277]: `{integer}` is not an iterator
 --> tests/compile-fail/surface_source_iter_badtype.rs:5:9
  |
5 |         source_iter(5) -> for_each(std::mem::drop);
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `{integer}` is not an iterator
  |
  = help: the trait `Iterator` is not implemented for `{integer}`, which is required by `{integer}: IntoIterator`
  = note: required for `{integer}` to implement `IntoIterator`
note: required by a bound in `check_iter`
 --> tests/compile-fail/surface_source_iter_badtype.rs:5:9
  |
5 |         source_iter(5) -> for_each(std::mem::drop);
  |         ^^^^^^^^^^^^^^ required by this bound in `check_iter`

from rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.