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

ices/113610.rs: fixed with errors #1623

Merged
merged 1 commit into from
Jul 18, 2023
Merged

ices/113610.rs: fixed with errors #1623

merged 1 commit into from
Jul 18, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#113610

fn test5() {
    let t = (String::new(), Default::default());
}
=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `113610`
 --> /home/runner/work/glacier/glacier/ices/113610.rs:3:2
  |
3 | }
  |  ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/113610.rs`

error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
 --> /home/runner/work/glacier/glacier/ices/113610.rs:2:29
  |
2 |     let t = (String::new(), Default::default());
  |                             ^^^^^^^^^^^^^^^^ cannot call associated function of trait
  |
help: use a fully-qualified path to a specific available implementation
  |
2 |     let t = (String::new(), </* self type */ as Default>::default());
  |                             +++++++++++++++++++        +

error: aborting due to 2 previous errors

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

=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `113610`
 --> /home/runner/work/glacier/glacier/ices/113610.rs:3:2
  |
3 | }
  |  ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/113610.rs`

error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
 --> /home/runner/work/glacier/glacier/ices/113610.rs:2:29
  |
2 |     let t = (String::new(), Default::default());
  |                             ^^^^^^^^^^^^^^^^ cannot call associated function of trait
  |
help: use a fully-qualified path to a specific available implementation
  |
2 |     let t = (String::new(), </* self type */ as Default>::default());
  |                             +++++++++++++++++++        +

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0601, E0790.
For more information about an error, try `rustc --explain E0601`.
==============
@Alexendoo Alexendoo merged commit 9bcaa67 into master Jul 18, 2023
@Alexendoo Alexendoo deleted the autofix/ices/113610.rs branch July 18, 2023 12:07
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