diff options
Diffstat (limited to 'src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-1.rs')
-rw-r--r-- | src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-1.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-1.rs b/src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-1.rs new file mode 100644 index 000000000..a6c86311b --- /dev/null +++ b/src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-1.rs @@ -0,0 +1,8 @@ +#![feature(unboxed_closures)] + +trait One<A> { fn foo(&self) -> A; } + +fn foo(_: &dyn One()) //~ ERROR associated type `Output` not found for `One<()>` +{} + +fn main() { } |