]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/underscore-lifetime/in-fn-return-illegal.rs
add more to the ERROR messages
[rust.git] / src / test / ui / underscore-lifetime / in-fn-return-illegal.rs
index 959254b8bb8156023bedf7b8d99584ca4913dc24..09f3abd9135cb9c2da375562f93831663c719884 100644 (file)
@@ -12,6 +12,6 @@
 
 use std::fmt::Debug;
 
-fn foo(x: &u32, y: &u32) -> &'_ u32 { loop { } } //~ ERROR
+fn foo(x: &u32, y: &u32) -> &'_ u32 { loop { } } //~ ERROR missing lifetime specifier
 
 fn main() { }