diff options
| -rw-r--r-- | src/librustc_typeck/diagnostics.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 3b6cc37181e..1c07d118f94 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -1390,8 +1390,7 @@ enum Bar { A(u8), B(&bool), } // error enum Bar<'a> { A(u8), B(&'a bool), } // correct type MyStr = &str; // error -type MyStr<'a> = &'a str; //correct - +type MyStr<'a> = &'a str; // correct ``` Lifetime elision is a special, limited kind of inference for lifetimes in |
