summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-6458.rs
blob: 16718e90deb51867737d03d62a264610b7f0b1ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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() {
}