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

ices/83630.rs: fixed with errors #845

Merged
merged 1 commit into from
Jun 22, 2021
Merged

ices/83630.rs: fixed with errors #845

merged 1 commit into from
Jun 22, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#83630

#![crate_type = "staticlib"]
static DATA: Iterator<Item = _> = "my string";
=== stdout ===
=== stderr ===
warning: trait objects without an explicit `dyn` are deprecated
 --> /home/runner/work/glacier/glacier/ices/83630.rs:2:14
  |
2 | static DATA: Iterator<Item = _> = "my string";
  |              ^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator<Item = _>`
  |
  = note: `#[warn(bare_trait_objects)]` on by default
  = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
  = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>

error[E0121]: the type placeholder `_` is not allowed within types on item signatures
 --> /home/runner/work/glacier/glacier/ices/83630.rs:2:30
  |
2 | static DATA: Iterator<Item = _> = "my string";
  |                              ^ not allowed in type signatures

error: aborting due to previous error; 1 warning emitted

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

=== stdout ===
=== stderr ===
warning: trait objects without an explicit `dyn` are deprecated
 --> /home/runner/work/glacier/glacier/ices/83630.rs:2:14
  |
2 | static DATA: Iterator<Item = _> = "my string";
  |              ^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Iterator<Item = _>`
  |
  = note: `#[warn(bare_trait_objects)]` on by default
  = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
  = note: for more information, see issue #80165 <rust-lang/rust#80165>

error[E0121]: the type placeholder `_` is not allowed within types on item signatures
 --> /home/runner/work/glacier/glacier/ices/83630.rs:2:30
  |
2 | static DATA: Iterator<Item = _> = "my string";
  |                              ^ not allowed in type signatures

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0121`.
==============
@JohnTitor JohnTitor merged commit 010784d into master Jun 22, 2021
@JohnTitor JohnTitor deleted the autofix/ices/83630.rs branch June 22, 2021 21:36
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