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

ices/94680.rs: fixed with no errors #1252

Merged
merged 1 commit into from
May 13, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#94680

fn main() {
   println!("{:?}", {
   type T = ();

     pub fn cloneit (it: &'_ mut T) -> (&'_ mut T, &'_ mut T)
where
    for<'any> &'any mut T : Clone, {
        (it.clone(), it)
    }
}); }
=== stdout ===
=== stderr ===
warning: type alias is never used: `T`
 --> /home/runner/work/glacier/glacier/ices/94680.rs:3:4
  |
3 |    type T = ();
  |    ^^^^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: function is never used: `cloneit`
 --> /home/runner/work/glacier/glacier/ices/94680.rs:5:13
  |
5 |      pub fn cloneit (it: &'_ mut T) -> (&'_ mut T, &'_ mut T)
  |             ^^^^^^^

warning: 2 warnings emitted

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

=== stdout ===
=== stderr ===
warning: type alias is never used: `T`
 --> /home/runner/work/glacier/glacier/ices/94680.rs:3:4
  |
3 |    type T = ();
  |    ^^^^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: function is never used: `cloneit`
 --> /home/runner/work/glacier/glacier/ices/94680.rs:5:13
  |
5 |      pub fn cloneit (it: &'_ mut T) -> (&'_ mut T, &'_ mut T)
  |             ^^^^^^^

warning: 2 warnings emitted

==============
@Alexendoo Alexendoo merged commit 307e468 into master May 13, 2022
@Alexendoo Alexendoo deleted the autofix/ices/94680.rs branch May 13, 2022 14: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