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.
4949For 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-
6052Due 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
You can’t perform that action at this time.
0 commit comments