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

ices/94998.sh: fixed with no errors #1175

Merged
merged 1 commit into from
Mar 19, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#94998

rustc  --crate-type lib --edition 2018 -Cdebuginfo=2 - 2>&1 << EOF


trait Trait {}

pub fn run(_: &dyn FnOnce(&()) -> Box<dyn Trait + '_>) {}


EOF
=== stdout ===
warning: private trait `Trait` in public interface (error E0445)
 --> <anon>:5:1
  |
5 | pub fn run(_: &dyn FnOnce(&()) -> Box<dyn Trait + '_>) {}
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(private_in_public)]` on by default
  = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
  = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: 1 warning emitted

=== stderr ===
==============

=== stdout ===
warning: private trait `Trait` in public interface (error E0445)
 --> <anon>:5:1
  |
5 | pub fn run(_: &dyn FnOnce(&()) -> Box<dyn Trait + '_>) {}
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(private_in_public)]` on by default
  = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
  = note: for more information, see issue #34537 <rust-lang/rust#34537>

warning: 1 warning emitted

=== stderr ===
==============
@Alexendoo Alexendoo merged commit fc9c984 into master Mar 19, 2022
@Alexendoo Alexendoo deleted the autofix/ices/94998.sh branch March 19, 2022 13:15
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