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

ices/112574.rs: fixed with errors #1689

Merged
merged 1 commit into from
Oct 10, 2023
Merged

ices/112574.rs: fixed with errors #1689

merged 1 commit into from
Oct 10, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#112574

#![feature(non_lifetime_binders)]

pub fn bar()
where
    for<const N: usize = {
    (||1usize)()
}> V: IntoIterator
{
}

fn main() {
    bar();
}
=== stdout ===
=== stderr ===
error[E0412]: cannot find type `V` in this scope
 --> /home/runner/work/glacier/glacier/ices/112574.rs:7:4
  |
7 | }> V: IntoIterator
  |    ^ not found in this scope
  |
help: you might be missing a type parameter
  |
3 | pub fn bar<V>()
  |           +++

warning: the feature `non_lifetime_binders` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /home/runner/work/glacier/glacier/ices/112574.rs:1:12
  |
1 | #![feature(non_lifetime_binders)]
  |            ^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
  = note: `#[warn(incomplete_features)]` on by default

error: aborting due to previous error; 1 warning emitted

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

=== stdout ===
=== stderr ===
error[E0412]: cannot find type `V` in this scope
 --> /home/runner/work/glacier/glacier/ices/112574.rs:7:4
  |
7 | }> V: IntoIterator
  |    ^ not found in this scope
  |
help: you might be missing a type parameter
  |
3 | pub fn bar<V>()
  |           +++

warning: the feature `non_lifetime_binders` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /home/runner/work/glacier/glacier/ices/112574.rs:1:12
  |
1 | #![feature(non_lifetime_binders)]
  |            ^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #108185 <rust-lang/rust#108185> for more information
  = note: `#[warn(incomplete_features)]` on by default

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0412`.
==============
@JohnTitor JohnTitor merged commit 54d13f4 into master Oct 10, 2023
@JohnTitor JohnTitor deleted the autofix/ices/112574.rs branch October 10, 2023 14:50
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