]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/method-suggestion-no-duplication.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[rust.git] / src / test / ui / impl-trait / method-suggestion-no-duplication.rs
1 // issue #21405
2 struct Foo;
3
4 fn foo<F>(f: F) where F: FnMut(Foo) {}
5
6 fn main() {
7     foo(|s| s.is_empty());
8     //~^ ERROR no method named `is_empty` found
9 }