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

ices/46511.rs: fixed with errors #572

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#46511

struct Foo<'a>
{
    a: [u8; std::mem::size_of::<&'a mut u8>()]
}
=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `46511`
 --> /home/runner/work/glacier/glacier/ices/46511.rs:1:1
  |
1 | / struct Foo<'a>
2 | | {
3 | |     a: [u8; std::mem::size_of::<&'a mut u8>()]
4 | | }
  | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/46511.rs`

error[E0658]: a non-static lifetime is not allowed in a `const`
 --> /home/runner/work/glacier/glacier/ices/46511.rs:3:34
  |
3 |     a: [u8; std::mem::size_of::<&'a mut u8>()]
  |                                  ^^
  |
  = 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 `46511`
 --> /home/runner/work/glacier/glacier/ices/46511.rs:1:1
  |
1 | / struct Foo<'a>
2 | | {
3 | |     a: [u8; std::mem::size_of::<&'a mut u8>()]
4 | | }
  | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/46511.rs`

error[E0658]: a non-static lifetime is not allowed in a `const`
 --> /home/runner/work/glacier/glacier/ices/46511.rs:3:34
  |
3 |     a: [u8; std::mem::size_of::<&'a mut u8>()]
  |                                  ^^
  |
  = 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`.
==============
@Alexendoo Alexendoo deleted the autofix/ices/46511.rs branch January 2, 2021 14:08
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