Skip to content

Commit

Permalink
Remove 'future Rust version' code block in diagnostic text.
Browse files Browse the repository at this point in the history
Fixes #43780.
  • Loading branch information
frewsxcv committed Oct 28, 2017
1 parent d9f1249 commit b168127
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/librustc/diagnostics.rs
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 b168127

Please sign in to comment.