diff options
| author | bors <bors@rust-lang.org> | 2021-05-27 01:43:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-05-27 01:43:20 +0000 |
| commit | c4ec606606850a5a3eba31da88ccd338ee8e8da5 (patch) | |
| tree | 9a7cea3984d8baef4c6392f7cbdb5e61f1f86bec /src/doc | |
| parent | 86ac0b4147822e23c671a40e7ba1bf5b5835150d (diff) | |
| parent | 85a408a043818bb72100cbb2750599e6d1b236c1 (diff) | |
| download | rust-c4ec606606850a5a3eba31da88ccd338ee8e8da5.tar.gz rust-c4ec606606850a5a3eba31da88ccd338ee8e8da5.zip | |
Auto merge of #85734 - Dylan-DPC:rollup-q6iiees, r=Dylan-DPC
Rollup of 8 pull requests Successful merges: - #84221 (E0599 suggestions and elision of generic argument if no canditate is found) - #84701 (stabilize member constraints) - #85564 ( readd capture disjoint fields gate) - #85583 (Get rid of PreviousDepGraph.) - #85649 (Update cc) - #85689 (Remove Iterator #[rustc_on_unimplemented]s that no longer apply.) - #85719 (Add inline attr to CString::into_inner so it can optimize out NonNull checks) - #85725 (Remove unneeded workaround) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/unstable-book/src/language-features/member-constraints.md | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/doc/unstable-book/src/language-features/member-constraints.md b/src/doc/unstable-book/src/language-features/member-constraints.md deleted file mode 100644 index 3ba4a3e6b1f..00000000000 --- a/src/doc/unstable-book/src/language-features/member-constraints.md +++ /dev/null @@ -1,29 +0,0 @@ -# `member_constraints` - -The tracking issue for this feature is: [#61997] - -[#61997]: https://github.com/rust-lang/rust/issues/61997 - ------------------------- - -The `member_constraints` feature gate lets you use `impl Trait` syntax with -multiple unrelated lifetime parameters. - -A simple example is: - -```rust -#![feature(member_constraints)] - -trait Trait<'a, 'b> { } -impl<T> Trait<'_, '_> for T {} - -fn foo<'a, 'b>(x: &'a u32, y: &'b u32) -> impl Trait<'a, 'b> { - (x, y) -} - -fn main() { } -``` - -Without the `member_constraints` feature gate, the above example is an -error because both `'a` and `'b` appear in the impl Trait bounds, but -neither outlives the other. |
