You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 04aa30c
Browse filesBrowse the repository at this point in the historyBrowse files
/// [#154619]: https://github.com/rust-lang/rust/issues/154619 "`deref_patterns` is unsound due to `dyn` of subtrait of `DerefPure`"
282
+
/// [#156917]: https://github.com/rust-lang/rust/issues/156917 "`dyn Allocator` together with `Allocator + PartialEq` safety requirements leads to unsoundness"
283
+
/// [#156920]:https://github.com/rust-lang/rust/issues/156920 "`dyn Allocator` together with `Allocator + Clone` requirements is unsound, leading to UB with `Arc`"
284
+
/// [#160045]:https://github.com/rust-lang/rust/issues/160045 "`iter::Rev`'s `TrustedLen` impl is unsound with trait objects"
error[E0038]: the trait `DynIncompatible` is not dyn compatible
2
+
--> $DIR/rustc_dyn_incompatible_trait.rs:8:15
3
+
|
4
+
8 | pub fn f(_x: &dyn DynIncompatible) {}
5
+
| ^^^^^^^^^^^^^^^^^^^ `DynIncompatible` is not dyn compatible
6
+
|
7
+
note: for a trait to be dyn compatible it needs to allow building a vtable
8
+
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
9
+
--> $DIR/rustc_dyn_incompatible_trait.rs:5:1
10
+
|
11
+
5 | #[rustc_dyn_incompatible_trait]
12
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it opted out of dyn-compatibility
13
+
6 | pub trait DynIncompatible {}
14
+
| --------------- this trait is not dyn compatible...
15
+
16
+
error: aborting due to 1 previous error
17
+
18
+
For more information about this error, try `rustc --explain E0038`.
0 commit comments