]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/regions/regions-name-duplicated.rs
Use the same message as type & const generics.
[rust.git] / src / test / ui / regions / regions-name-duplicated.rs
index 4cf8b4401925da6652f15080cd6a7b3699d3ba8c..f6616591a3df223db8782e29ff56dffa662e6991 100644 (file)
@@ -1,5 +1,5 @@
 struct Foo<'a, 'a> {
-    //~^ ERROR lifetime name `'a` declared twice
+    //~^ ERROR the name `'a` is already used for a generic parameter
     x: &'a isize,
 }