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

ices/104827.rs: fixed with errors #1503

Merged
merged 1 commit into from
Jan 26, 2023
Merged

ices/104827.rs: fixed with errors #1503

merged 1 commit into from
Jan 26, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#104827

#![feature(try_trait_v2)]

use std::ops::FromResidual;

struct MySnafu;

fn test_function() {
    impl FromResidual for MySnafu {
        fn from_residual(s: Self) -> Self {
            todo!()
        }
    }
}

fn main() {}
=== stdout ===
=== stderr ===
error[E0277]: the trait bound `MySnafu: Try` is not satisfied
 --> /home/runner/work/glacier/glacier/ices/104827.rs:8:10
  |
8 |     impl FromResidual for MySnafu {
  |          ^^^^^^^^^^^^ the trait `Try` is not implemented for `MySnafu`

error[E0277]: the trait bound `MySnafu: Try` is not satisfied
  --> /home/runner/work/glacier/glacier/ices/104827.rs:9:9
   |
9  | /         fn from_residual(s: Self) -> Self {
10 | |             todo!()
11 | |         }
   | |_________^ the trait `Try` is not implemented for `MySnafu`

error: aborting due to 2 previous errors

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

=== stdout ===
=== stderr ===
error[E0277]: the trait bound `MySnafu: Try` is not satisfied
 --> /home/runner/work/glacier/glacier/ices/104827.rs:8:10
  |
8 |     impl FromResidual for MySnafu {
  |          ^^^^^^^^^^^^ the trait `Try` is not implemented for `MySnafu`

error[E0277]: the trait bound `MySnafu: Try` is not satisfied
  --> /home/runner/work/glacier/glacier/ices/104827.rs:9:9
   |
9  | /         fn from_residual(s: Self) -> Self {
10 | |             todo!()
11 | |         }
   | |_________^ the trait `Try` is not implemented for `MySnafu`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0277`.
==============
@JohnTitor JohnTitor merged commit a73fbd7 into master Jan 26, 2023
@JohnTitor JohnTitor deleted the autofix/ices/104827.rs branch January 26, 2023 11:21
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