unimplement PointerLike for trait objects

This commit is contained in:
Lukas Markeffsky
2024-12-20 17:35:29 +01:00
parent 42c00cb647
commit 971a4f2d3b
3 changed files with 63 additions and 0 deletions

View File

@@ -990,6 +990,7 @@ pub trait Tuple {}
message = "`{Self}` needs to have the same ABI as a pointer",
label = "`{Self}` needs to be a pointer-like type"
)]
#[cfg_attr(not(bootstrap), rustc_do_not_implement_via_object)]
pub trait PointerLike {}
#[cfg(not(bootstrap))]