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

ices/83693.rs: fixed with errors #887

Merged
merged 1 commit into from
Jul 26, 2021
Merged

ices/83693.rs: fixed with errors #887

merged 1 commit into from
Jul 26, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#83693

#![feature(fn_traits)]
fn call() {
    <x as Fn(&usize)>::call
}
=== stdout ===
=== stderr ===
error[E0412]: cannot find type `x` in this scope
 --> /home/runner/work/glacier/glacier/ices/83693.rs:3:6
  |
3 |     <x as Fn(&usize)>::call
  |      ^ not found in this scope

error[E0601]: `main` function not found in crate `83693`
 --> /home/runner/work/glacier/glacier/ices/83693.rs:1:1
  |
1 | / #![feature(fn_traits)]
2 | | fn call() {
3 | |     <x as Fn(&usize)>::call
4 | | }
  | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83693.rs`

error[E0229]: associated type bindings are not allowed here
 --> /home/runner/work/glacier/glacier/ices/83693.rs:3:11
  |
3 |     <x as Fn(&usize)>::call
  |           ^^^^^^^^^^ associated type not allowed here

error: aborting due to 3 previous errors

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

=== stdout ===
=== stderr ===
error[E0412]: cannot find type `x` in this scope
 --> /home/runner/work/glacier/glacier/ices/83693.rs:3:6
  |
3 |     <x as Fn(&usize)>::call
  |      ^ not found in this scope

error[E0601]: `main` function not found in crate `83693`
 --> /home/runner/work/glacier/glacier/ices/83693.rs:1:1
  |
1 | / #![feature(fn_traits)]
2 | | fn call() {
3 | |     <x as Fn(&usize)>::call
4 | | }
  | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83693.rs`

error[E0229]: associated type bindings are not allowed here
 --> /home/runner/work/glacier/glacier/ices/83693.rs:3:11
  |
3 |     <x as Fn(&usize)>::call
  |           ^^^^^^^^^^ associated type not allowed here

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0229, E0412, E0601.
For more information about an error, try `rustc --explain E0229`.
==============
@Alexendoo Alexendoo merged commit 7d8f089 into master Jul 26, 2021
@Alexendoo Alexendoo deleted the autofix/ices/83693.rs branch July 26, 2021 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