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

ices/74713.rs: fixed with errors #617

Merged
merged 1 commit into from
Jan 18, 2021
Merged

ices/74713.rs: fixed with errors #617

merged 1 commit into from
Jan 18, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#74713

#![feature(const_generics)]

fn bug<'a>()
where
    [(); {
        let _: &'a ();
    }]: ,
{
}

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

error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/74713.rs:5:10
  |
5 |       [(); {
  |  __________^
6 | |         let _: &'a ();
7 | |     }]: ,
  | |_____^ expected `usize`, found `()`

error: aborting due to previous error; 1 warning emitted

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

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

error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/74713.rs:5:10
  |
5 |       [(); {
  |  __________^
6 | |         let _: &'a ();
7 | |     }]: ,
  | |_____^ expected `usize`, found `()`

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0308`.
==============
@JohnTitor JohnTitor merged commit 782e8f3 into master Jan 18, 2021
@JohnTitor JohnTitor deleted the autofix/ices/74713.rs branch January 18, 2021 13:31
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