summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/fallback_inference.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/impl-trait/fallback_inference.rs')
-rw-r--r--tests/ui/impl-trait/fallback_inference.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/fallback_inference.rs b/tests/ui/impl-trait/fallback_inference.rs
new file mode 100644
index 000000000..98f0bd1af
--- /dev/null
+++ b/tests/ui/impl-trait/fallback_inference.rs
@@ -0,0 +1,7 @@
+use std::marker::PhantomData;
+
+fn weird() -> PhantomData<impl Sized> {
+ PhantomData //~ ERROR type annotations needed
+}
+
+fn main() {}