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

ices/64173.rs: fixed with errors #583

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#64173

use std::mem::size_of;

struct Bug<'s> {
    array: [(); size_of::<&Self>()],
}

fn main() {}
=== stdout ===
=== stderr ===
error: generic `Self` types are currently not permitted in anonymous constants
 --> /home/runner/work/glacier/glacier/ices/64173.rs:4:28
  |
4 |     array: [(); size_of::<&Self>()],
  |                            ^^^^

error[E0392]: parameter `'s` is never used
 --> /home/runner/work/glacier/glacier/ices/64173.rs:3:12
  |
3 | struct Bug<'s> {
  |            ^^ unused parameter
  |
  = help: consider removing `'s`, referring to it in a field, or using a marker such as `PhantomData`

error: aborting due to 2 previous errors

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

=== stdout ===
=== stderr ===
error: generic `Self` types are currently not permitted in anonymous constants
 --> /home/runner/work/glacier/glacier/ices/64173.rs:4:28
  |
4 |     array: [(); size_of::<&Self>()],
  |                            ^^^^

error[E0392]: parameter `'s` is never used
 --> /home/runner/work/glacier/glacier/ices/64173.rs:3:12
  |
3 | struct Bug<'s> {
  |            ^^ unused parameter
  |
  = help: consider removing `'s`, referring to it in a field, or using a marker such as `PhantomData`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0392`.
==============
@Alexendoo Alexendoo deleted the autofix/ices/64173.rs branch January 2, 2021 14:07
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