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

ices/70934.rs: fixed with errors #355

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented May 6, 2020

Issue: rust-lang/rust#70934

struct S;

fn main() {
    &([S][0],);
}
=== stdout ===
=== stderr ===
error[E0508]: cannot move out of type `[S; 1]`, a non-copy array
 --> /home/runner/work/glacier/glacier/ices/70934.rs:4:7
  |
4 |     &([S][0],);
  |       ^^^^^^
  |       |
  |       cannot move out of here
  |       move occurs because value has type `S`, which does not implement the `Copy` trait

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error[E0508]: cannot move out of type `[S; 1]`, a non-copy array
 --> /home/runner/work/glacier/glacier/ices/70934.rs:4:7
  |
4 |     &([S][0],);
  |       ^^^^^^
  |       |
  |       cannot move out of here
  |       move occurs because value has type `S`, which does not implement the `Copy` trait

error: aborting due to previous error

For more information about this error, try `rustc --explain E0508`.
==============
@JohnTitor
Copy link
Member

Closing in favor of #351.

@JohnTitor JohnTitor closed this May 6, 2020
@JohnTitor JohnTitor deleted the autofix/ices/70934.rs branch May 6, 2020 16:22
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