rust/tests/ui/traits/fn-pointer/suggest-wrap-parens-method.rs

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

16 lines
197 B
Rust
Raw Normal View History

//@ run-rustfix
trait Foo {}
impl Foo for fn() {}
trait Bar {
fn do_stuff(&self) where Self: Foo {}
}
impl<T> Bar for T {}
fn main() {
main.do_stuff();
//~^ ERROR the trait bound
}