Skip to content

Commit 0b02377

Browse files
authored
Rollup merge of rust-lang#45585 - frewsxcv:frewsxcv-diagnostic, r=kennytm
Remove 'future Rust version' code block in diagnostic text. Fixes rust-lang#43780.
2 parents 65f1df5 + b168127 commit 0b02377

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Diff for: 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)