mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 05:51:58 +00:00
Rollup merge of #52929 - Havvy:patch-1, r=alexcrichton
Update compatibility note for 1.28.0 to be correct You can still put implementations on `dyn Trait + Send + Send`, but it'd be the same as putting them on `dyn Trait + Send`. This is why the error is that there are duplicate definitions in the example.
This commit is contained in:
commit
850b613b60
@ -94,9 +94,9 @@ Misc
|
|||||||
|
|
||||||
Compatibility Notes
|
Compatibility Notes
|
||||||
-------------------
|
-------------------
|
||||||
- [Rust will no longer consider trait objects with duplicated constraints to
|
- [Rust will consider trait objects with duplicated constraints to be the same
|
||||||
have implementations.][51276] For example the below code will now fail
|
type as without the duplicated constraint.][51276] For example the below code will
|
||||||
to compile.
|
now fail to compile.
|
||||||
```rust
|
```rust
|
||||||
trait Trait {}
|
trait Trait {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user