We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 632465f commit 3699e94Copy full SHA for 3699e94
core/src/ptr/metadata.rs
@@ -61,6 +61,8 @@ pub trait Pointee {
61
// NOTE: Keep trait bounds in `static_assert_expected_bounds_for_metadata`
62
// in `library/core/src/ptr/metadata.rs`
63
// in sync with those here:
64
+ // NOTE: The metadata of `dyn Trait + 'a` is `DynMetadata<dyn Trait + 'a>`
65
+ // so a `'static` bound must not be added.
66
type Metadata: fmt::Debug + Copy + Send + Sync + Ord + Hash + Unpin + Freeze;
67
}
68
0 commit comments