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

Commit

Permalink
ices/82927.rs: fixed with errors
Browse files Browse the repository at this point in the history
=== 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`.
==============
  • Loading branch information
rustbot committed Aug 13, 2022
1 parent a04cfb5 commit e605fc3
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

0 comments on commit e605fc3

Please sign in to comment.