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

ices/75323.rs: fixed with errors #484

Merged
merged 1 commit into from
Oct 3, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 3, 2020

Issue: rust-lang/rust#75323

#![feature(min_const_generics)]

fn test<const N: usize>() {}

fn wow<'a>() -> &'a () {
    test::<
        {
            let _: &'a ();
            3
        },
    >();
    &()
}
=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `75323`
  --> /home/runner/work/glacier/glacier/ices/75323.rs:1:1
   |
1  | / #![feature(min_const_generics)]
2  | |
3  | | fn test<const N: usize>() {}
4  | |
...  |
12 | |     &()
13 | | }
   | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/75323.rs`

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

error: aborting due to 2 previous errors

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

=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `75323`
  --> /home/runner/work/glacier/glacier/ices/75323.rs:1:1
   |
1  | / #![feature(min_const_generics)]
2  | |
3  | | fn test<const N: usize>() {}
4  | |
...  |
12 | |     &()
13 | | }
   | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/75323.rs`

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

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0601, E0658.
For more information about an error, try `rustc --explain E0601`.
==============
@JohnTitor JohnTitor merged commit 3704184 into master Oct 3, 2020
@JohnTitor JohnTitor deleted the autofix/ices/75323.rs branch October 3, 2020 13:10
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants