rust/tests/ui/trait-bounds/issue-82038.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
186 B
Rust
Raw Normal View History

// 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]
}