]> 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 8f9b897eae22452dbb4905b974d2c1f31c535b3f..6aeb9442c40ed9ebb637ac2cbf66e66490d610ac 100644 (file)
@@ -14,7 +14,7 @@ fn new<T>() -> &'static T {
 
 fn main() {
     let &v = new();
-    //~^ ERROR unable to fully infer type(s) [E0282]
-    //~| NOTE cannot infer type
-    //~| NOTE type annotations or generic parameter binding
+    //~^ ERROR type annotations needed [E0282]
+    //~| NOTE cannot infer type for `_`
+    //~| NOTE consider giving a type to pattern
 }