We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70c7e4d commit 31e5dd3Copy full SHA for 31e5dd3
tests/ui/trait-bounds/issue-82038.rs
@@ -0,0 +1,9 @@
1
+// Failed bound `bool: Foo` must not point at the `Self: Clone` line
2
+
3
+trait Foo {
4
+ fn my_method() where Self: Clone;
5
+}
6
7
+fn main() {
8
+ <bool as Foo>::my_method(); //~ERROR [E0277]
9
tests/ui/trait-bounds/issue-82038.stderr
+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`.
0 commit comments