diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2020-01-27 12:49:12 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2020-02-05 10:32:01 -0800 |
| commit | fa4594196d2bcc265c4cdc1382d33366b3008341 (patch) | |
| tree | 127b29b44fedca563996cb4f88bede542796713e /src/test/ui/error-codes | |
| parent | 7e1464336a627ecb962f4eb38173fbfbfdd2ccf0 (diff) | |
| download | rust-fa4594196d2bcc265c4cdc1382d33366b3008341.tar.gz rust-fa4594196d2bcc265c4cdc1382d33366b3008341.zip | |
Suggest `'r` instead of `'lifetime`
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0106.stderr | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/ui/error-codes/E0106.stderr b/src/test/ui/error-codes/E0106.stderr index e01e0a6f54b..3792b8f637a 100644 --- a/src/test/ui/error-codes/E0106.stderr +++ b/src/test/ui/error-codes/E0106.stderr @@ -6,8 +6,8 @@ LL | x: &bool, | help: consider introducing a named lifetime parameter | -LL | struct Foo<'lifetime> { -LL | x: &'lifetime bool, +LL | struct Foo<'r> { +LL | x: &'r bool, | error[E0106]: missing lifetime specifier @@ -18,9 +18,9 @@ LL | B(&bool), | help: consider introducing a named lifetime parameter | -LL | enum Bar<'lifetime> { +LL | enum Bar<'r> { LL | A(u8), -LL | B(&'lifetime bool), +LL | B(&'r bool), | error[E0106]: missing lifetime specifier @@ -31,8 +31,8 @@ LL | type MyStr = &str; | help: consider introducing a named lifetime parameter | -LL | type MyStr<'lifetime> = &'lifetime str; - | ^^^^^^^^^^^ ^^^^^^^^^^ +LL | type MyStr<'r> = &'r str; + | ^^^^ ^^^ error[E0106]: missing lifetime specifier --> $DIR/E0106.rs:17:10 @@ -42,8 +42,8 @@ LL | baz: Baz, | help: consider introducing a named lifetime parameter | -LL | struct Quux<'lifetime> { -LL | baz: Baz<'lifetime>, +LL | struct Quux<'r> { +LL | baz: Baz<'r>, | error[E0106]: missing lifetime specifiers |
