rust/tests/ui/trait-bounds/issue-82038.stderr
Michael Howell 31e5dd3a79 diagnostics: add test case for trait bounds diagnostic
Closes #82038

It was fixed by b8e5ab20ed, a wide-reaching
obligation tracking improvement. This commit adds a test case.
2023-09-07 11:36:23 -07:00

10 lines
300 B
Plaintext

error[E0277]: the trait bound `bool: Foo` is not satisfied
--> $DIR/issue-82038.rs:8:6
|
LL | <bool as Foo>::my_method();
| ^^^^ the trait `Foo` is not implemented for `bool`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.