]> git.proxmox.com Git - rustc.git/blame - src/test/ui/mismatched_types/method-help-unsatisfied-bound.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / mismatched_types / method-help-unsatisfied-bound.stderr
CommitLineData
5869c6ff 1error[E0599]: the method `unwrap` exists for enum `std::result::Result<(), Foo>`, but its trait bounds were not satisfied
0731742a 2 --> $DIR/method-help-unsatisfied-bound.rs:5:7
7cac9316 3 |
74b04a01 4LL | struct Foo;
1b1a35ee 5 | ----------- doesn't satisfy `Foo: Debug`
74b04a01 6...
0531ce1d 7LL | a.unwrap();
5869c6ff 8 | ^^^^^^ method cannot be called on `std::result::Result<(), Foo>` due to unsatisfied trait bounds
7cac9316 9 |
5869c6ff 10 = note: the following trait bounds were not satisfied:
1b1a35ee 11 `Foo: Debug`
7cac9316 12
041b39d2 13error: aborting due to previous error
7cac9316 14
0531ce1d 15For more information about this error, try `rustc --explain E0599`.