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

ices/78561.rs: fixed with errors #997

Merged
merged 1 commit into from
Oct 20, 2021
Merged

ices/78561.rs: fixed with errors #997

merged 1 commit into from
Oct 20, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#78561

#![feature(type_alias_impl_trait, member_constraints)]

pub trait Trait {
    type A;

    fn f() -> Self::A;
}

pub trait Tr2<'a, 'b> {}

pub struct A<T>(T);
pub trait Tr {
    type B;
}

impl<'a, 'b, T: Tr<B = dyn Tr2<'a, 'b>>> Trait for A<T> {
    type A = impl core::fmt::Debug;

    fn f() -> Self::A {}
}
=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `78561`
  --> /home/runner/work/glacier/glacier/ices/78561.rs:1:1
   |
1  | / #![feature(type_alias_impl_trait, member_constraints)]
2  | |
3  | | pub trait Trait {
4  | |     type A;
...  |
19 | |     fn f() -> Self::A {}
20 | | }
   | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/78561.rs`

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `78561`
  --> /home/runner/work/glacier/glacier/ices/78561.rs:1:1
   |
1  | / #![feature(type_alias_impl_trait, member_constraints)]
2  | |
3  | | pub trait Trait {
4  | |     type A;
...  |
19 | |     fn f() -> Self::A {}
20 | | }
   | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/78561.rs`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0601`.
==============
@Alexendoo Alexendoo merged commit 6d15fe0 into master Oct 20, 2021
@Alexendoo Alexendoo deleted the autofix/ices/78561.rs branch October 20, 2021 18:06
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