]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/issue-12187-1.rs
Rollup merge of #41249 - GuillaumeGomez:rustdoc-render, r=steveklabnik,frewsxcv
[rust.git] / src / test / compile-fail / issue-12187-1.rs
index 001e4b51bebc4f619beaa84665fb38a7d6ecf525..6aeb9442c40ed9ebb637ac2cbf66e66490d610ac 100644 (file)
@@ -14,7 +14,7 @@ fn new<T>() -> &'static T {
 
 fn main() {
     let &v = new();
-    //~^ ERROR unable to infer enough type information about `_` [E0282]
+    //~^ ERROR type annotations needed [E0282]
     //~| NOTE cannot infer type for `_`
-    //~| NOTE type annotations or generic parameter binding
+    //~| NOTE consider giving a type to pattern
 }