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

ices/83993.rs: fixed with errors #953

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 1, 2021

Issue: rust-lang/rust#83993

#![feature(const_generics)]
fn bug<'a>()
where
    for<'b> [(); {
        let x: &'b ();
        0
    }]:
{}
=== stdout ===
=== stderr ===
error[E0557]: feature has been removed
 --> /home/runner/work/glacier/glacier/ices/83993.rs:1:12
  |
1 | #![feature(const_generics)]
  |            ^^^^^^^^^^^^^^ feature has been removed
  |
  = note: removed in favor of `#![feature(adt_const_params]` and `#![feature(generic_const_exprs)]`

error[E0601]: `main` function not found in crate `83993`
 --> /home/runner/work/glacier/glacier/ices/83993.rs:1:1
  |
1 | / #![feature(const_generics)]
2 | | fn bug<'a>()
3 | | where
4 | |     for<'b> [(); {
... |
7 | |     }]:
8 | | {}
  | |__^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83993.rs`

error[E0658]: a non-static lifetime is not allowed in a `const`
 --> /home/runner/work/glacier/glacier/ices/83993.rs:5:17
  |
5 |         let x: &'b ();
  |                 ^^
  |
  = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
  = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0557, E0601, E0658.
For more information about an error, try `rustc --explain E0557`.
==============

=== stdout ===
=== stderr ===
error[E0557]: feature has been removed
 --> /home/runner/work/glacier/glacier/ices/83993.rs:1:12
  |
1 | #![feature(const_generics)]
  |            ^^^^^^^^^^^^^^ feature has been removed
  |
  = note: removed in favor of `#![feature(adt_const_params]` and `#![feature(generic_const_exprs)]`

error[E0601]: `main` function not found in crate `83993`
 --> /home/runner/work/glacier/glacier/ices/83993.rs:1:1
  |
1 | / #![feature(const_generics)]
2 | | fn bug<'a>()
3 | | where
4 | |     for<'b> [(); {
... |
7 | |     }]:
8 | | {}
  | |__^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83993.rs`

error[E0658]: a non-static lifetime is not allowed in a `const`
 --> /home/runner/work/glacier/glacier/ices/83993.rs:5:17
  |
5 |         let x: &'b ();
  |                 ^^
  |
  = note: see issue #76560 <rust-lang/rust#76560> for more information
  = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0557, E0601, E0658.
For more information about an error, try `rustc --explain E0557`.
==============
@Alexendoo Alexendoo closed this Sep 1, 2021
@Alexendoo Alexendoo deleted the autofix/ices/83993.rs branch September 1, 2021 16:25
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.

None yet

2 participants