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

ices/99777-2.rs: fixed with errors #1373

Merged
merged 1 commit into from
Aug 5, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 5, 2022

Issue: rust-lang/rust#99777

pub fn test() {
    #[doc(alias = "test")]
    let num_flags = 0;
}
=== stdout ===
=== stderr ===
warning: unused doc comment
 --> /home/runner/work/glacier/glacier/ices/99777-2.rs:2:5
  |
2 |     #[doc(alias = "test")]
  |     ^^^^^^^^^^^^^^^^^^^^^^
3 |     let num_flags = 0;
  |     ------------------ rustdoc does not generate documentation for statements
  |
  = note: `#[warn(unused_doc_comments)]` on by default
  = help: use `//` for a plain comment

error[E0601]: `main` function not found in crate `99777_2`
 --> /home/runner/work/glacier/glacier/ices/99777-2.rs:4:2
  |
4 | }
  |  ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/99777-2.rs`

error: `#[doc(alias = "...")]` isn't allowed on statement
 --> /home/runner/work/glacier/glacier/ices/99777-2.rs:2:11
  |
2 |     #[doc(alias = "test")]
  |           ^^^^^^^^^^^^^^

error: aborting due to 2 previous errors; 1 warning emitted

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

=== stdout ===
=== stderr ===
warning: unused doc comment
 --> /home/runner/work/glacier/glacier/ices/99777-2.rs:2:5
  |
2 |     #[doc(alias = "test")]
  |     ^^^^^^^^^^^^^^^^^^^^^^
3 |     let num_flags = 0;
  |     ------------------ rustdoc does not generate documentation for statements
  |
  = note: `#[warn(unused_doc_comments)]` on by default
  = help: use `//` for a plain comment

error[E0601]: `main` function not found in crate `99777_2`
 --> /home/runner/work/glacier/glacier/ices/99777-2.rs:4:2
  |
4 | }
  |  ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/99777-2.rs`

error: `#[doc(alias = "...")]` isn't allowed on statement
 --> /home/runner/work/glacier/glacier/ices/99777-2.rs:2:11
  |
2 |     #[doc(alias = "test")]
  |           ^^^^^^^^^^^^^^

error: aborting due to 2 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0601`.
==============
@JohnTitor JohnTitor merged commit 3e2d089 into master Aug 5, 2022
@JohnTitor JohnTitor deleted the autofix/ices/99777-2.rs branch August 5, 2022 21:38
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