]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mismatched_types/method-help-unsatisfied-bound.stderr
865092e4e9ccccc385d99dbc30934e5f9c9d0cb5
[rust.git] / src / test / ui / mismatched_types / method-help-unsatisfied-bound.stderr
1 error[E0599]: no method named `unwrap` found for type `std::result::Result<(), Foo>` in the current scope
2   --> $DIR/method-help-unsatisfied-bound.rs:5:7
3    |
4 LL |     a.unwrap();
5    |       ^^^^^^ method not found in `std::result::Result<(), Foo>`
6    |
7    = note: the method `unwrap` exists but the following trait bounds were not satisfied:
8            `Foo : std::fmt::Debug`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0599`.