31e5dd3a79
Closes #82038
It was fixed by b8e5ab20ed
, a wide-reaching
obligation tracking improvement. This commit adds a test case.
10 lines
300 B
Plaintext
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`.
|