]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-6458.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-6458.rs
index c1f9dd6a4b8935a501acc71b898a311694592130..a64522a0e5b7543bfc038c051d3247a759a9088a 100644 (file)
@@ -17,7 +17,9 @@ pub fn foo<State>(_: TypeWithState<State>) {}
 
 pub fn bar() {
    foo(TypeWithState(marker::PhantomData));
-   //~^ ERROR type annotations or generic parameter binding required
+   //~^ ERROR unable to infer enough type information about `_` [E0282]
+   //~| NOTE cannot infer type for `_`
+   //~| NOTE type annotations or generic parameter binding
 }
 
 fn main() {