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

ices/105969.rs: fixed with no errors #1564

Merged
merged 1 commit into from
Apr 7, 2023
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 7, 2023

Issue: rust-lang/rust#105969

#![feature(dyn_star)]
#![allow(incomplete_features)]

use core::fmt::Debug;

const FOO: () = {
    let foo = &3;
    let i = foo as dyn* Debug;
};

fn main() {}
=== stdout ===
=== stderr ===
warning: unused variable: `i`
 --> /home/runner/work/glacier/glacier/ices/105969.rs:8:9
  |
8 |     let i = foo as dyn* Debug;
  |         ^ help: if this is intentional, prefix it with an underscore: `_i`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: constant `FOO` is never used
 --> /home/runner/work/glacier/glacier/ices/105969.rs:6:7
  |
6 | const FOO: () = {
  |       ^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 2 warnings emitted

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

=== stdout ===
=== stderr ===
warning: unused variable: `i`
 --> /home/runner/work/glacier/glacier/ices/105969.rs:8:9
  |
8 |     let i = foo as dyn* Debug;
  |         ^ help: if this is intentional, prefix it with an underscore: `_i`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: constant `FOO` is never used
 --> /home/runner/work/glacier/glacier/ices/105969.rs:6:7
  |
6 | const FOO: () = {
  |       ^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 2 warnings emitted

==============
@Alexendoo Alexendoo merged commit e2f84fa into master Apr 7, 2023
@Alexendoo Alexendoo deleted the autofix/ices/105969.rs branch April 7, 2023 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