]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mismatched_types/method-help-unsatisfied-bound.stderr
Rollup merge of #89945 - JohnTitor:we-now-specialize-clone-from-slice, r=the8472
[rust.git] / src / test / ui / mismatched_types / method-help-unsatisfied-bound.stderr
1 error[E0599]: the method `unwrap` exists for enum `Result<(), Foo>`, but its trait bounds were not satisfied
2   --> $DIR/method-help-unsatisfied-bound.rs:5:7
3    |
4 LL | struct Foo;
5    | ----------- doesn't satisfy `Foo: Debug`
6 ...
7 LL |     a.unwrap();
8    |       ^^^^^^ method cannot be called on `Result<(), Foo>` due to unsatisfied trait bounds
9    |
10    = note: the following trait bounds were not satisfied:
11            `Foo: Debug`
12 help: consider annotating `Foo` with `#[derive(Debug)]`
13    |
14 LL | #[derive(Debug)]
15    |
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0599`.