Changing the error code to E0621

This commit is contained in:
gaurikholkar 2017-06-26 11:26:01 -07:00
parent 82f25b32ae
commit aebc4e0074
9 changed files with 33 additions and 16 deletions

View file

@ -1,4 +1,4 @@
error[E0611]: explicit lifetime required in the type of `x`
error[E0621]: explicit lifetime required in the type of `x`
--> $DIR/ex1-return-one-existing-name-if-else-2.rs:12:16
|
11 | fn foo<'a>(x: &i32, y: &'a i32) -> &'a i32 {

View file

@ -1,4 +1,4 @@
error[E0611]: explicit lifetime required in parameter type
error[E0621]: explicit lifetime required in parameter type
--> $DIR/ex1-return-one-existing-name-if-else-3.rs:12:27
|
11 | fn foo<'a>((x, y): (&'a i32, &i32)) -> &'a i32 {

View file

@ -1,4 +1,4 @@
error[E0611]: explicit lifetime required in the type of `x`
error[E0621]: explicit lifetime required in the type of `x`
--> $DIR/ex1-return-one-existing-name-if-else-using-impl-2.rs:14:15
|
13 | fn foo<'a>(x: &i32, y: &'a i32) -> &'a i32 {

View file

@ -1,4 +1,4 @@
error[E0611]: explicit lifetime required in the type of `x`
error[E0621]: explicit lifetime required in the type of `x`
--> $DIR/ex1-return-one-existing-name-if-else-using-impl-3.rs:18:36
|
16 | fn foo<'a>(&'a self, x: &i32) -> &i32 {

View file

@ -1,4 +1,4 @@
error[E0611]: explicit lifetime required in the type of `y`
error[E0621]: explicit lifetime required in the type of `y`
--> $DIR/ex1-return-one-existing-name-if-else.rs:12:27
|
11 | fn foo<'a>(x: &'a i32, y: &i32) -> &'a i32 {

View file

@ -1,4 +1,4 @@
error[E0611]: explicit lifetime required in the type of `x`
error[E0621]: explicit lifetime required in the type of `x`
--> $DIR/ex2a-push-one-existing-name-2.rs:16:12
|
15 | fn foo<'a>(x: Ref<i32>, y: &mut Vec<Ref<'a, i32>>) {

View file

@ -1,4 +1,4 @@
error[E0611]: explicit lifetime required in the type of `y`
error[E0621]: explicit lifetime required in the type of `y`
--> $DIR/ex2a-push-one-existing-name.rs:16:12
|
15 | fn foo<'a>(x: &mut Vec<Ref<'a, i32>>, y: Ref<i32>) {