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

ices/61335.rs: fixed with errors #1685

Merged
merged 1 commit into from
Sep 24, 2023
Merged

ices/61335.rs: fixed with errors #1685

merged 1 commit into from
Sep 24, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#61335

#![feature(async_await)]
#![feature(unsized_locals)]

async fn f() {}

async fn g(x: Box<dyn core::fmt::Display>) {
    let _x = *x;
    f().await;
}

fn main() {
    let _a = g(Box::new(5));
}
=== stdout ===
=== stderr ===
warning: the feature `unsized_locals` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /home/runner/work/glacier/glacier/ices/61335.rs:2:12
  |
2 | #![feature(unsized_locals)]
  |            ^^^^^^^^^^^^^^
  |
  = note: see issue #48055 <https://github.com/rust-lang/rust/issues/48055> for more information
  = note: `#[warn(incomplete_features)]` on by default

warning: the feature `async_await` has been stable since 1.39.0 and no longer requires an attribute to enable
 --> /home/runner/work/glacier/glacier/ices/61335.rs:1:12
  |
1 | #![feature(async_await)]
  |            ^^^^^^^^^^^
  |
  = note: `#[warn(stable_features)]` on by default

error[E0277]: the size for values of type `dyn std::fmt::Display` cannot be known at compilation time
 --> /home/runner/work/glacier/glacier/ices/61335.rs:7:9
  |
7 |     let _x = *x;
  |         ^^ doesn't have a size known at compile-time
  |
  = help: the trait `Sized` is not implemented for `dyn std::fmt::Display`
  = note: all values live across `await` must have a statically known size

error: aborting due to previous error; 2 warnings emitted

For more information about this error, try `rustc --explain E0277`.
==============

=== stdout ===
=== stderr ===
warning: the feature `unsized_locals` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /home/runner/work/glacier/glacier/ices/61335.rs:2:12
  |
2 | #![feature(unsized_locals)]
  |            ^^^^^^^^^^^^^^
  |
  = note: see issue #48055 <rust-lang/rust#48055> for more information
  = note: `#[warn(incomplete_features)]` on by default

warning: the feature `async_await` has been stable since 1.39.0 and no longer requires an attribute to enable
 --> /home/runner/work/glacier/glacier/ices/61335.rs:1:12
  |
1 | #![feature(async_await)]
  |            ^^^^^^^^^^^
  |
  = note: `#[warn(stable_features)]` on by default

error[E0277]: the size for values of type `dyn std::fmt::Display` cannot be known at compilation time
 --> /home/runner/work/glacier/glacier/ices/61335.rs:7:9
  |
7 |     let _x = *x;
  |         ^^ doesn't have a size known at compile-time
  |
  = help: the trait `Sized` is not implemented for `dyn std::fmt::Display`
  = note: all values live across `await` must have a statically known size

error: aborting due to previous error; 2 warnings emitted

For more information about this error, try `rustc --explain E0277`.
==============
@JohnTitor JohnTitor merged commit b17003d into master Sep 24, 2023
@JohnTitor JohnTitor deleted the autofix/ices/61335.rs branch September 24, 2023 14:21
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