about summary refs log tree commit diff
path: root/src/test/ui/trait-bounds/mismatch-fn-trait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/trait-bounds/mismatch-fn-trait.rs')
-rw-r--r--src/test/ui/trait-bounds/mismatch-fn-trait.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/test/ui/trait-bounds/mismatch-fn-trait.rs b/src/test/ui/trait-bounds/mismatch-fn-trait.rs
deleted file mode 100644
index 0ed64043a9a..00000000000
--- a/src/test/ui/trait-bounds/mismatch-fn-trait.rs
+++ /dev/null
@@ -1,28 +0,0 @@
-fn take(_f: impl FnMut(i32)) {}
-
-fn test1(f: impl FnMut(u32)) {
-    take(f)
-    //~^ ERROR [E0277]
-}
-
-fn test2(f: impl FnMut(i32, i32)) {
-    take(f)
-    //~^ ERROR [E0277]
-}
-
-fn test3(f: impl FnMut()) {
-    take(f)
-    //~^ ERROR [E0277]
-}
-
-fn test4(f: impl FnOnce(i32)) {
-    take(f)
-    //~^ ERROR [E0277]
-}
-
-fn test5(f: impl FnOnce(u32)) {
-    take(f)
-    //~^ ERROR [E0277]
-}
-
-fn main() {}