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

ices/72267.sh: fixed with errors #374

Merged
merged 1 commit into from
May 20, 2020
Merged

ices/72267.sh: fixed with errors #374

merged 1 commit into from
May 20, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#72267

#!/bin/bash

cat > 72267.rs <<EOF
fn main() {
    let _: Box<(?Sized)>;
}
EOF

rustc -Zsave-analysis 72267.rs
=== stdout ===
=== stderr ===
error: `?Trait` is not permitted in trait object types
 --> 72267.rs:2:17
  |
2 |     let _: Box<(?Sized)>;
  |                 ^^^^^^

warning: trait objects without an explicit `dyn` are deprecated
 --> 72267.rs:2:17
  |
2 |     let _: Box<(?Sized)>;
  |                 ^^^^^^ help: use `dyn`: `dyn ?Sized`
  |
  = note: `#[warn(bare_trait_objects)]` on by default

error[E0224]: at least one trait is required for an object type
 --> 72267.rs:2:17
  |
2 |     let _: Box<(?Sized)>;
  |                 ^^^^^^

error: aborting due to 2 previous errors; 1 warning emitted

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

=== stdout ===
=== stderr ===
error: `?Trait` is not permitted in trait object types
 --> 72267.rs:2:17
  |
2 |     let _: Box<(?Sized)>;
  |                 ^^^^^^

warning: trait objects without an explicit `dyn` are deprecated
 --> 72267.rs:2:17
  |
2 |     let _: Box<(?Sized)>;
  |                 ^^^^^^ help: use `dyn`: `dyn ?Sized`
  |
  = note: `#[warn(bare_trait_objects)]` on by default

error[E0224]: at least one trait is required for an object type
 --> 72267.rs:2:17
  |
2 |     let _: Box<(?Sized)>;
  |                 ^^^^^^

error: aborting due to 2 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0224`.
==============
@JohnTitor JohnTitor merged commit a618f0e into master May 20, 2020
@JohnTitor JohnTitor deleted the autofix/ices/72267.sh branch May 20, 2020 12:20
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