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

ices/78671.rs: fixed with errors #642

Merged
merged 1 commit into from
Feb 6, 2021
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Feb 6, 2021

Issue: rust-lang/rust#78671

trait CollectionFamily {
    type Member<T>;
}

fn floatify() {
    Family as CollectionFamily
}

fn main() {}
=== stdout ===
=== stderr ===
error[E0425]: cannot find value `Family` in this scope
 --> /home/runner/work/glacier/glacier/ices/78671.rs:6:5
  |
6 |     Family as CollectionFamily
  |     ^^^^^^ not found in this scope

error[E0658]: generic associated types are unstable
 --> /home/runner/work/glacier/glacier/ices/78671.rs:2:5
  |
2 |     type Member<T>;
  |     ^^^^^^^^^^^^^^^
  |
  = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
  = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable

warning: trait objects without an explicit `dyn` are deprecated
 --> /home/runner/work/glacier/glacier/ices/78671.rs:6:15
  |
6 |     Family as CollectionFamily
  |               ^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn CollectionFamily`
  |
  = note: `#[warn(bare_trait_objects)]` on by default

error[E0191]: the value of the associated type `Member` (from trait `CollectionFamily`) must be specified
 --> /home/runner/work/glacier/glacier/ices/78671.rs:6:15
  |
2 |     type Member<T>;
  |     --------------- `Member` defined here
...
6 |     Family as CollectionFamily
  |               ^^^^^^^^^^^^^^^^ help: specify the associated type: `CollectionFamily<Member = Type>`

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

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

=== stdout ===
=== stderr ===
error[E0425]: cannot find value `Family` in this scope
 --> /home/runner/work/glacier/glacier/ices/78671.rs:6:5
  |
6 |     Family as CollectionFamily
  |     ^^^^^^ not found in this scope

error[E0658]: generic associated types are unstable
 --> /home/runner/work/glacier/glacier/ices/78671.rs:2:5
  |
2 |     type Member<T>;
  |     ^^^^^^^^^^^^^^^
  |
  = note: see issue #44265 <rust-lang/rust#44265> for more information
  = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable

warning: trait objects without an explicit `dyn` are deprecated
 --> /home/runner/work/glacier/glacier/ices/78671.rs:6:15
  |
6 |     Family as CollectionFamily
  |               ^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn CollectionFamily`
  |
  = note: `#[warn(bare_trait_objects)]` on by default

error[E0191]: the value of the associated type `Member` (from trait `CollectionFamily`) must be specified
 --> /home/runner/work/glacier/glacier/ices/78671.rs:6:15
  |
2 |     type Member<T>;
  |     --------------- `Member` defined here
...
6 |     Family as CollectionFamily
  |               ^^^^^^^^^^^^^^^^ help: specify the associated type: `CollectionFamily<Member = Type>`

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

Some errors have detailed explanations: E0191, E0425, E0658.
For more information about an error, try `rustc --explain E0191`.
==============
@Alexendoo Alexendoo merged commit c1bd421 into master Feb 6, 2021
@Alexendoo Alexendoo deleted the autofix/ices/78671.rs branch February 6, 2021 13:41
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