]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-6458.rs
Merge commit '40dd3e2b7089b5e96714e064b731f6dbf17c61a9' into sync_cg_clif-2021-05-27
[rust.git] / src / test / ui / issues / issue-6458.rs
1 use std::marker;
2
3 pub struct TypeWithState<State>(marker::PhantomData<State>);
4 pub struct MyState;
5
6 pub fn foo<State>(_: TypeWithState<State>) {}
7
8 pub fn bar() {
9    foo(TypeWithState(marker::PhantomData));
10    //~^ ERROR type annotations needed [E0282]
11 }
12
13 fn main() {
14 }