diff options
Diffstat (limited to 'src/test/ui/impl-trait/diagnostics/fully-qualified-path-impl-trait.rs')
-rw-r--r-- | src/test/ui/impl-trait/diagnostics/fully-qualified-path-impl-trait.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/ui/impl-trait/diagnostics/fully-qualified-path-impl-trait.rs b/src/test/ui/impl-trait/diagnostics/fully-qualified-path-impl-trait.rs deleted file mode 100644 index 3a47710d5..000000000 --- a/src/test/ui/impl-trait/diagnostics/fully-qualified-path-impl-trait.rs +++ /dev/null @@ -1,15 +0,0 @@ -trait Foo<T> { - fn foo(self, f: impl FnOnce()); -} - -impl<T> Foo<T> for () { - fn foo(self, f: impl FnOnce()) { - f() - } -} - -fn main() { - // FIXME: This should ideally use a fully qualified path - // without mentioning the generic arguments of `foo`. - ().foo(|| ()) //~ ERROR type annotations needed -} |