mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
10 lines
186 B
Rust
10 lines
186 B
Rust
|
// 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]
|
||
|
}
|