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

ices/113133.rs: fixed with errors #1707

Merged
merged 1 commit into from
Jan 5, 2024
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jan 5, 2024

Issue: rust-lang/rust#113133

#![allow(incomplete_features)]
#![feature(generic_const_exprs, non_lifetime_binders)]

pub fn foo()
where
    for<const N: usize = { const fn bar() {} bar(); 1 }> ():, 
{}

fn main() {}
=== stdout ===
=== stderr ===
error: defaults for generic parameters are not allowed in `for<...>` binders
 --> /home/runner/work/glacier/glacier/ices/113133.rs:6:9
  |
6 |     for<const N: usize = { const fn bar() {} bar(); 1 }> ():, 
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 1 previous error

==============

=== stdout ===
=== stderr ===
error: defaults for generic parameters are not allowed in `for<...>` binders
 --> /home/runner/work/glacier/glacier/ices/113133.rs:6:9
  |
6 |     for<const N: usize = { const fn bar() {} bar(); 1 }> ():, 
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 1 previous error

==============
@JohnTitor JohnTitor merged commit 4d0c0cf into master Jan 5, 2024
@JohnTitor JohnTitor deleted the autofix/ices/113133.rs branch January 5, 2024 12:27
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