From f430fca73a94dfcfff146dac8ea8833615fc537e Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 8 Dec 2019 18:09:36 -0800 Subject: [PATCH 1/2] corrected comment to reflect that 'SnowWhite lives longer than 'kiss in E0478 --- src/librustc_error_codes/error_codes/E0478.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_error_codes/error_codes/E0478.md b/src/librustc_error_codes/error_codes/E0478.md index 6634d9b6e63b4..ad20e77ea9baf 100644 --- a/src/librustc_error_codes/error_codes/E0478.md +++ b/src/librustc_error_codes/error_codes/E0478.md @@ -21,8 +21,8 @@ this issue, you need to specify it: ``` trait Wedding<'t>: 't { } -struct Prince<'kiss, 'SnowWhite: 'kiss> { // You say here that 'kiss must live - // longer than 'SnowWhite. +struct Prince<'kiss, 'SnowWhite: 'kiss> { // You say here that 'SnowWhite must live + // longer than 'kiss. child: Box + 'SnowWhite>, // And now it's all good! } ``` From 2183a949a8293eb328259374653e76199494b0ea Mon Sep 17 00:00:00 2001 From: Dylan DPC Date: Mon, 9 Dec 2019 12:17:38 +0100 Subject: [PATCH 2/2] Update E0478.md --- src/librustc_error_codes/error_codes/E0478.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_error_codes/error_codes/E0478.md b/src/librustc_error_codes/error_codes/E0478.md index ad20e77ea9baf..4bc5fde2e897e 100644 --- a/src/librustc_error_codes/error_codes/E0478.md +++ b/src/librustc_error_codes/error_codes/E0478.md @@ -21,8 +21,8 @@ this issue, you need to specify it: ``` trait Wedding<'t>: 't { } -struct Prince<'kiss, 'SnowWhite: 'kiss> { // You say here that 'SnowWhite must live - // longer than 'kiss. +struct Prince<'kiss, 'SnowWhite: 'kiss> { // You say here that 'SnowWhite + // must live longer than 'kiss. child: Box + 'SnowWhite>, // And now it's all good! } ```