]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-6458.rs
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-6458.rs
CommitLineData
85aaf69f
SL
1use std::marker;
2
3pub struct TypeWithState<State>(marker::PhantomData<State>);
1a4d82fc
JJ
4pub struct MyState;
5
6pub fn foo<State>(_: TypeWithState<State>) {}
7
8pub fn bar() {
d9579d0f 9 foo(TypeWithState(marker::PhantomData));
8bb4bdeb 10 //~^ ERROR type annotations needed [E0282]
1a4d82fc 11}
970d7e83
LB
12
13fn main() {
223e47cc 14}