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

ices/96847.rs: fixed with errors #1386

Merged
merged 1 commit into from
Aug 13, 2022
Merged

ices/96847.rs: fixed with errors #1386

merged 1 commit into from
Aug 13, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#96847

fn main() {
    for _ in [] {
        #![doc=""]
    }
}
=== stdout ===
=== stderr ===
warning: unused doc comment
 --> /home/runner/work/glacier/glacier/ices/96847.rs:3:9
  |
2 | /     for _ in [] {
3 | |         #![doc=""]
  | |         ^^^^^^^^^^
4 | |     }
  | |_____- rustdoc does not generate documentation for expressions
  |
  = note: `#[warn(unused_doc_comments)]` on by default
  = help: use `//` for a plain comment

error[E0282]: type annotations needed
 --> /home/runner/work/glacier/glacier/ices/96847.rs:2:14
  |
2 |     for _ in [] {
  |              ^^ cannot infer type

error: aborting due to previous error; 1 warning emitted

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

=== stdout ===
=== stderr ===
warning: unused doc comment
 --> /home/runner/work/glacier/glacier/ices/96847.rs:3:9
  |
2 | /     for _ in [] {
3 | |         #![doc=""]
  | |         ^^^^^^^^^^
4 | |     }
  | |_____- rustdoc does not generate documentation for expressions
  |
  = note: `#[warn(unused_doc_comments)]` on by default
  = help: use `//` for a plain comment

error[E0282]: type annotations needed
 --> /home/runner/work/glacier/glacier/ices/96847.rs:2:14
  |
2 |     for _ in [] {
  |              ^^ cannot infer type

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0282`.
==============
@Alexendoo Alexendoo merged commit d7f4a1b into master Aug 13, 2022
@Alexendoo Alexendoo deleted the autofix/ices/96847.rs branch August 13, 2022 14:02
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