Skip to content

Commit 372c7f9

Browse files
authored
Merge pull request #666 from ehuss/remove-trait-object-warning
Remove trait object warning.
2 parents 6f0bdab + ac158e9 commit 372c7f9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/types/trait-object.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,6 @@ if the sets of auto traits are the same and the lifetime bounds are the same.
4949
For example, `dyn Trait + Send + UnwindSafe` is the same as
5050
`dyn Trait + Unwindsafe + Send`.
5151

52-
<div class="warning">
53-
54-
***Warning:*** With two trait object types, even when the complete set of traits
55-
is the same, if the base traits differ, the type is different. For example,
56-
`dyn Send + Sync` is a different type from `dyn Sync + Send`. See [issue 33140].
57-
58-
</div>
59-
6052
Due to the opaqueness of which concrete type the value is of, trait objects are
6153
[dynamically sized types]. Like all
6254
<abbr title="dynamically sized types">DSTs</abbr>, trait objects are used
@@ -109,6 +101,5 @@ inferred with a sensible choice.
109101
[auto traits]: ../special-types-and-traits.md#auto-traits
110102
[defaults]: ../lifetime-elision.md#default-trait-object-lifetimes
111103
[dynamically sized types]: ../dynamically-sized-types.md
112-
[issue 33140]: https://github.com/rust-lang/rust/issues/33140
113104
[object safe]: ../items/traits.md#object-safety
114105
[supertraits]: ../items/traits.md#supertraits

0 commit comments

Comments
 (0)