File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -49,14 +49,6 @@ if the sets of auto traits are the same and the lifetime bounds are the same.
49
49
For example, ` dyn Trait + Send + UnwindSafe ` is the same as
50
50
` dyn Trait + Unwindsafe + Send ` .
51
51
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
-
60
52
Due to the opaqueness of which concrete type the value is of, trait objects are
61
53
[ dynamically sized types] . Like all
62
54
<abbr title =" dynamically sized types " >DSTs</abbr >, trait objects are used
@@ -109,6 +101,5 @@ inferred with a sensible choice.
109
101
[ auto traits ] : ../special-types-and-traits.md#auto-traits
110
102
[ defaults ] : ../lifetime-elision.md#default-trait-object-lifetimes
111
103
[ dynamically sized types ] : ../dynamically-sized-types.md
112
- [ issue 33140 ] : https://github.com/rust-lang/rust/issues/33140
113
104
[ object safe ] : ../items/traits.md#object-safety
114
105
[ supertraits ] : ../items/traits.md#supertraits
You can’t perform that action at this time.
0 commit comments