summary refs log tree commit diff
path: root/src/test/ui/impl-trait/method-suggestion-no-duplication.rs
blob: 32f351716734950b72969a92e38be7a05516adca (plain)
1
2
3
4
5
6
7
8
9
10
11
// issue #21405
// ignore-tidy-linelength

struct Foo;

fn foo<F>(f: F) where F: FnMut(Foo) {}

fn main() {
    foo(|s| s.is_empty());
    //~^ ERROR no method named `is_empty` found
}