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

ices/84737.sh: fixed with no errors #1083

Merged
merged 1 commit into from
Jan 11, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#84737

#!/bin/bash

rustc --edition=2018 - <<'EOF'
#![allow(incomplete_features)]
#![feature(generic_const_exprs)]
#![crate_type="lib"]

async fn test(test: [(); { 0 }]) {
    let _ = &test;
    async {}.await;
}
EOF
=== stdout ===
=== stderr ===
warning: unnecessary braces around const expression
 --> <anon>:5:26
  |
5 | async fn test(test: [(); { 0 }]) {
  |                          ^^ ^^
  |
  = note: `#[warn(unused_braces)]` on by default
help: remove these braces
  |
5 - async fn test(test: [(); { 0 }]) {
5 + async fn test(test: [(); 0]) {
  | 

warning: function is never used: `test`
 --> <anon>:5:10
  |
5 | async fn test(test: [(); { 0 }]) {
  |          ^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 2 warnings emitted

==============

=== stdout ===
=== stderr ===
warning: unnecessary braces around const expression
 --> <anon>:5:26
  |
5 | async fn test(test: [(); { 0 }]) {
  |                          ^^ ^^
  |
  = note: `#[warn(unused_braces)]` on by default
help: remove these braces
  |
5 - async fn test(test: [(); { 0 }]) {
5 + async fn test(test: [(); 0]) {
  | 

warning: function is never used: `test`
 --> <anon>:5:10
  |
5 | async fn test(test: [(); { 0 }]) {
  |          ^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 2 warnings emitted

==============
@Alexendoo Alexendoo merged commit a104ace into master Jan 11, 2022
@Alexendoo Alexendoo deleted the autofix/ices/84737.sh branch January 11, 2022 17: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