Skip to content

Commit

Permalink
Rollup merge of #45585 - frewsxcv:frewsxcv-diagnostic, r=kennytm
Browse files Browse the repository at this point in the history
Remove 'future Rust version' code block in diagnostic text.

Fixes #43780.
  • Loading branch information
kennytm authored Oct 28, 2017
2 parents 65f1df5 + b168127 commit 0b02377
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/librustc/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,16 +401,6 @@ fn bar(x: &str, y: &str) -> &str { }
fn baz<'a>(x: &'a str, y: &str) -> &str { }
```
Here's an example that is currently an error, but may work in a future version
of Rust:
```compile_fail,E0106
struct Foo<'a>(&'a str);
trait Quux { }
impl Quux for Foo { }
```
Lifetime elision in implementation headers was part of the lifetime elision
RFC. It is, however, [currently unimplemented][iss15872].
Expand Down

0 comments on commit 0b02377

Please sign in to comment.