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

ices/75961.rs: fixed with no errors #1002

Merged
merged 1 commit into from
Oct 24, 2021
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#75961

pub fn foo<'a>(s: &'a mut ()) where &'a mut (): Clone {
    <&mut () as Clone>::clone(&s);
}

fn main() {}
=== stdout ===
=== stderr ===
warning: unused return value of `clone` that must be used
 --> /home/runner/work/glacier/glacier/ices/75961.rs:2:5
  |
2 |     <&mut () as Clone>::clone(&s);
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_must_use)]` on by default
  = note: cloning is often expensive and is not expected to have side effects

warning: 1 warning emitted

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

=== stdout ===
=== stderr ===
warning: unused return value of `clone` that must be used
 --> /home/runner/work/glacier/glacier/ices/75961.rs:2:5
  |
2 |     <&mut () as Clone>::clone(&s);
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_must_use)]` on by default
  = note: cloning is often expensive and is not expected to have side effects

warning: 1 warning emitted

==============
@Alexendoo Alexendoo merged commit 094b050 into master Oct 24, 2021
@Alexendoo Alexendoo deleted the autofix/ices/75961.rs branch October 24, 2021 13:07
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