diff options
| author | Josh White <jwhite927@gmail.com> | 2020-02-08 00:22:15 -0500 |
|---|---|---|
| committer | Josh White <jwhite927@gmail.com> | 2020-02-08 00:22:15 -0500 |
| commit | 409146673c38ffeed1a9c93b9d1736be9de3cce4 (patch) | |
| tree | d32fb778795b1655530f03b1eae4ae4901446904 /src/librustc_error_codes/error_codes | |
| parent | 69075f065cdbb0a5138549260c3f2f8234aa7cfc (diff) | |
Removed trailing white spaces
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0637.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_error_codes/error_codes/E0637.md b/src/librustc_error_codes/error_codes/E0637.md index 13be5036767..f2ec7fa0b49 100644 --- a/src/librustc_error_codes/error_codes/E0637.md +++ b/src/librustc_error_codes/error_codes/E0637.md @@ -24,7 +24,7 @@ struct A<const N: &u8>; //~^ ERROR `&` without an explicit lifetime name cannot be used here trait B {} -impl<const N: &u8> A<N> { +impl<const N: &u8> A<N> { //~^ ERROR `&` without an explicit lifetime name cannot be used here fn foo<const M: &u8>(&self) {} //~^ ERROR `&` without an explicit lifetime name cannot be used here @@ -38,7 +38,7 @@ fn bar<const N: &u8>() {} } ``` -Const generics cannot be borrowed without specifying a lifetime.The +Const generics cannot be borrowed without specifying a lifetime.The compiler handles memory allocation of constants differently than that of variables and it cannot infer the lifetime of the borrowed constant. To fix this, explicitly specify a lifetime for the const generic. |
