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

ices/78459.rs: fixed with no errors #1139

Merged
merged 1 commit into from
Feb 19, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#78459

#![feature(allocator_api)]

fn main() {
    Box::new_in(&[0, 1], &std::alloc::Global);
}
=== stdout ===
=== stderr ===
warning: unused return value of `Box::<T, A>::new_in` that must be used
 --> /home/runner/work/glacier/glacier/ices/78459.rs:4:5
  |
4 |     Box::new_in(&[0, 1], &std::alloc::Global);
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_must_use)]` on by default

warning: 1 warning emitted

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

=== stdout ===
=== stderr ===
warning: unused return value of `Box::<T, A>::new_in` that must be used
 --> /home/runner/work/glacier/glacier/ices/78459.rs:4:5
  |
4 |     Box::new_in(&[0, 1], &std::alloc::Global);
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_must_use)]` on by default

warning: 1 warning emitted

==============
@Alexendoo Alexendoo merged commit 949b329 into master Feb 19, 2022
@Alexendoo Alexendoo deleted the autofix/ices/78459.rs branch February 19, 2022 12:14
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