]>
Commit | Line | Data |
---|---|---|
85aaf69f SL |
1 | use std::marker; |
2 | ||
3 | pub struct TypeWithState<State>(marker::PhantomData<State>); | |
1a4d82fc JJ |
4 | pub struct MyState; |
5 | ||
6 | pub fn foo<State>(_: TypeWithState<State>) {} | |
7 | ||
8 | pub fn bar() { | |
d9579d0f | 9 | foo(TypeWithState(marker::PhantomData)); |
8bb4bdeb | 10 | //~^ ERROR type annotations needed [E0282] |
1a4d82fc | 11 | } |
970d7e83 LB |
12 | |
13 | fn main() { | |
223e47cc | 14 | } |