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

Commit

Permalink
ices/65673.rs: fixed with errors (#212)
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/65673.rs:11:1
   |
11 | trait Foo<Ix, OnSet> = where OnSet: Callback0;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see rust-lang/rust#41517
   = help: add `#![feature(trait_alias)]` to the crate attributes to enable

warning: trait objects without an explicit `dyn` are deprecated
  --> /home/runner/work/glacier/glacier/ices/65673.rs:14:16
   |
14 |     type Ctx = Foo<Ix, OnSet>;
   |                ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Foo<Ix, OnSet>`
   |
   = note: `#[warn(bare_trait_objects)]` on by default

error[E0392]: parameter `Ix` is never used
 --> /home/runner/work/glacier/glacier/ices/65673.rs:1:24
  |
1 | pub struct SharedRange<Ix, OnSet> {
  |                        ^^ unused parameter
  |
  = help: consider removing `Ix`, referring to it in a field, or using a marker such as `std::marker::PhantomData`

error[E0392]: parameter `OnSet` is never used
 --> /home/runner/work/glacier/glacier/ices/65673.rs:1:28
  |
1 | pub struct SharedRange<Ix, OnSet> {
  |                            ^^^^^ unused parameter
  |
  = help: consider removing `OnSet`, referring to it in a field, or using a marker such as `std::marker::PhantomData`

error[E0277]: the size for values of type `(dyn Callback0 + 'static)` cannot be known at compilation time
  --> /home/runner/work/glacier/glacier/ices/65673.rs:14:5
   |
6  |     type Ctx;
   |          --- associated type defined here
...
13 | impl<Ix, OnSet> HasCtx for SharedRange<Ix, OnSet> {
   | ------------------------------------------------- in this `impl` item
14 |     type Ctx = Foo<Ix, OnSet>;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `std::marker::Sized` is not implemented for `(dyn Callback0 + 'static)`
   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0277, E0392, E0658.
For more information about an error, try `rustc --explain E0277`.
==============
  • Loading branch information
github-actions[bot] authored and Dylan-DPC committed Nov 24, 2019
1 parent 58b22b5 commit 35c3794
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

0 comments on commit 35c3794

Please sign in to comment.