1 2 3 4 5 6 7 8 9
// Failed bound `bool: Foo` must not point at the `Self: Clone` line trait Foo { fn my_method() where Self: Clone; } fn main() { <bool as Foo>::my_method(); //~ERROR [E0277] }