]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-6458.stderr
Auto merge of #96737 - ChrisDenton:win-manifest, r=wesleywiser
[rust.git] / src / test / ui / issues / issue-6458.stderr
1 error[E0282]: type annotations needed
2   --> $DIR/issue-6458.rs:9:4
3    |
4 LL |    foo(TypeWithState(marker::PhantomData));
5    |    ^^^ cannot infer type for type parameter `State` declared on the function `foo`
6    |
7 help: type parameter declared here
8   --> $DIR/issue-6458.rs:6:12
9    |
10 LL | pub fn foo<State>(_: TypeWithState<State>) {}
11    |            ^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0282`.