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

ices/89189.rs: fixed with errors #1178

Merged
merged 1 commit into from
Mar 22, 2022
Merged

ices/89189.rs: fixed with errors #1178

merged 1 commit into from
Mar 22, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#89189

#![feature(fn_traits, unboxed_closures)]
struct Func {}
impl Fn(&str) -> bool for Func {
    extern "rust-call" fn call(&self, args: Args) -> Self::Output {
        todo!()
    }
}

fn main() {}
=== stdout ===
=== stderr ===
error[E0412]: cannot find type `Args` in this scope
 --> /home/runner/work/glacier/glacier/ices/89189.rs:4:45
  |
4 |     extern "rust-call" fn call(&self, args: Args) -> Self::Output {
  |                                             ^^^^ not found in this scope
  |
help: consider importing this struct
  |
2 | use std::env::Args;
  |

error[E0229]: associated type bindings are not allowed here
 --> /home/runner/work/glacier/glacier/ices/89189.rs:3:18
  |
3 | impl Fn(&str) -> bool for Func {
  |                  ^^^^ associated type not allowed here

error: aborting due to 2 previous errors

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

=== stdout ===
=== stderr ===
error[E0412]: cannot find type `Args` in this scope
 --> /home/runner/work/glacier/glacier/ices/89189.rs:4:45
  |
4 |     extern "rust-call" fn call(&self, args: Args) -> Self::Output {
  |                                             ^^^^ not found in this scope
  |
help: consider importing this struct
  |
2 | use std::env::Args;
  |

error[E0229]: associated type bindings are not allowed here
 --> /home/runner/work/glacier/glacier/ices/89189.rs:3:18
  |
3 | impl Fn(&str) -> bool for Func {
  |                  ^^^^ associated type not allowed here

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0229, E0412.
For more information about an error, try `rustc --explain E0229`.
==============
@Alexendoo Alexendoo merged commit cb8896d into master Mar 22, 2022
@Alexendoo Alexendoo deleted the autofix/ices/89189.rs branch March 22, 2022 12:25
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