summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-6458.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-6458.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-6458.rs b/src/test/ui/issues/issue-6458.rs
new file mode 100644
index 000000000..16718e90d
--- /dev/null
+++ b/src/test/ui/issues/issue-6458.rs
@@ -0,0 +1,14 @@
+use std::marker;
+
+pub struct TypeWithState<State>(marker::PhantomData<State>);
+pub struct MyState;
+
+pub fn foo<State>(_: TypeWithState<State>) {}
+
+pub fn bar() {
+ foo(TypeWithState(marker::PhantomData));
+ //~^ ERROR type annotations needed [E0282]
+}
+
+fn main() {
+}