]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-6458.rs
Rollup merge of #92942 - Xaeroxe:raw_arg, r=dtolnay
[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 }