Skip to content

Commit b168127

Browse files
committed
Remove 'future Rust version' code block in diagnostic text.
Fixes #43780.
1 parent d9f1249 commit b168127

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/librustc/diagnostics.rs

-10
Original file line numberDiff line numberDiff line change
@@ -401,16 +401,6 @@ fn bar(x: &str, y: &str) -> &str { }
401401
fn baz<'a>(x: &'a str, y: &str) -> &str { }
402402
```
403403
404-
Here's an example that is currently an error, but may work in a future version
405-
of Rust:
406-
407-
```compile_fail,E0106
408-
struct Foo<'a>(&'a str);
409-
410-
trait Quux { }
411-
impl Quux for Foo { }
412-
```
413-
414404
Lifetime elision in implementation headers was part of the lifetime elision
415405
RFC. It is, however, [currently unimplemented][iss15872].
416406

0 commit comments

Comments
 (0)