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

ices/82927.rs: fixed with errors #1383

Merged
merged 1 commit into from
Aug 13, 2022
Merged

ices/82927.rs: fixed with errors #1383

merged 1 commit into from
Aug 13, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#82927

trait SendEqAlias<T> = PartialEq;
struct Foo;
struct Bar<T>(SendEqAlias<T>);
=== stdout ===
=== stderr ===
error[E0658]: trait aliases are experimental
 --> /home/runner/work/glacier/glacier/ices/82927.rs:1:1
  |
1 | trait SendEqAlias<T> = PartialEq;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #41517 <https://github.com/rust-lang/rust/issues/41517> for more information
  = help: add `#![feature(trait_alias)]` to the crate attributes to enable

error[E0601]: `main` function not found in crate `82927`
 --> /home/runner/work/glacier/glacier/ices/82927.rs:3:31
  |
3 | struct Bar<T>(SendEqAlias<T>);
  |                               ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/82927.rs`

warning: trait objects without an explicit `dyn` are deprecated
 --> /home/runner/work/glacier/glacier/ices/82927.rs:3:15
  |
3 | struct Bar<T>(SendEqAlias<T>);
  |               ^^^^^^^^^^^^^^
  |
  = note: `#[warn(bare_trait_objects)]` on by default
  = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
  = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
help: use `dyn`
  |
3 - struct Bar<T>(SendEqAlias<T>);
3 + struct Bar<T>(dyn SendEqAlias<T>);
  |

error[E0393]: the type parameter `Rhs` must be explicitly specified
 --> /home/runner/work/glacier/glacier/ices/82927.rs:3:15
  |
3 | struct Bar<T>(SendEqAlias<T>);
  |               ^^^^^^^^^^^^^^ missing reference to `Rhs`
  |
  = note: because of the default `Self` reference, type parameters must be specified on object types

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

Some errors have detailed explanations: E0393, E0601, E0658.
For more information about an error, try `rustc --explain E0393`.
==============

=== stdout ===
=== stderr ===
error[E0658]: trait aliases are experimental
 --> /home/runner/work/glacier/glacier/ices/82927.rs:1:1
  |
1 | trait SendEqAlias<T> = PartialEq;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #41517 <rust-lang/rust#41517> for more information
  = help: add `#![feature(trait_alias)]` to the crate attributes to enable

error[E0601]: `main` function not found in crate `82927`
 --> /home/runner/work/glacier/glacier/ices/82927.rs:3:31
  |
3 | struct Bar<T>(SendEqAlias<T>);
  |                               ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/82927.rs`

warning: trait objects without an explicit `dyn` are deprecated
 --> /home/runner/work/glacier/glacier/ices/82927.rs:3:15
  |
3 | struct Bar<T>(SendEqAlias<T>);
  |               ^^^^^^^^^^^^^^
  |
  = note: `#[warn(bare_trait_objects)]` on by default
  = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
  = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
help: use `dyn`
  |
3 - struct Bar<T>(SendEqAlias<T>);
3 + struct Bar<T>(dyn SendEqAlias<T>);
  |

error[E0393]: the type parameter `Rhs` must be explicitly specified
 --> /home/runner/work/glacier/glacier/ices/82927.rs:3:15
  |
3 | struct Bar<T>(SendEqAlias<T>);
  |               ^^^^^^^^^^^^^^ missing reference to `Rhs`
  |
  = note: because of the default `Self` reference, type parameters must be specified on object types

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

Some errors have detailed explanations: E0393, E0601, E0658.
For more information about an error, try `rustc --explain E0393`.
==============
@Alexendoo Alexendoo merged commit 5144b17 into master Aug 13, 2022
@Alexendoo Alexendoo deleted the autofix/ices/82927.rs branch August 13, 2022 14:01
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