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

ices/83907.rs: fixed with errors #719

Merged
merged 1 commit into from
Apr 17, 2021
Merged

ices/83907.rs: fixed with errors #719

merged 1 commit into from
Apr 17, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#83907

static STATIC_VAR_FIVE: &One();
=== stdout ===
=== stderr ===
error: free static item without body
 --> /home/runner/work/glacier/glacier/ices/83907.rs:1:1
  |
1 | static STATIC_VAR_FIVE: &One();
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
  |                               |
  |                               help: provide a definition for the static: `= <expr>;`

error[E0412]: cannot find type `One` in this scope
 --> /home/runner/work/glacier/glacier/ices/83907.rs:1:26
  |
1 | static STATIC_VAR_FIVE: &One();
  |                          ^^^ not found in this scope

error[E0601]: `main` function not found in crate `83907`
 --> /home/runner/work/glacier/glacier/ices/83907.rs:1:1
  |
1 | static STATIC_VAR_FIVE: &One();
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83907.rs`

error: aborting due to 3 previous errors

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

=== stdout ===
=== stderr ===
error: free static item without body
 --> /home/runner/work/glacier/glacier/ices/83907.rs:1:1
  |
1 | static STATIC_VAR_FIVE: &One();
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
  |                               |
  |                               help: provide a definition for the static: `= <expr>;`

error[E0412]: cannot find type `One` in this scope
 --> /home/runner/work/glacier/glacier/ices/83907.rs:1:26
  |
1 | static STATIC_VAR_FIVE: &One();
  |                          ^^^ not found in this scope

error[E0601]: `main` function not found in crate `83907`
 --> /home/runner/work/glacier/glacier/ices/83907.rs:1:1
  |
1 | static STATIC_VAR_FIVE: &One();
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83907.rs`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0412, E0601.
For more information about an error, try `rustc --explain E0412`.
==============
@Alexendoo Alexendoo merged commit 4056cde into master Apr 17, 2021
@Alexendoo Alexendoo deleted the autofix/ices/83907.rs branch April 17, 2021 20:04
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