diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-06-16 08:10:49 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-06-16 08:10:49 +0000 |
| commit | ab385a9916bddb38da5d5b7bfaa08a0006da35a8 (patch) | |
| tree | 1183fc0f182cdbf3ad57a805cd814f5fca658d28 | |
| parent | aafdccfd9ec15d64a7f1850b67855df9cea8c35e (diff) | |
| parent | 8b24077171d4e56091676737ce3e9ca710c0521e (diff) | |
| download | rust-ab385a9916bddb38da5d5b7bfaa08a0006da35a8.tar.gz rust-ab385a9916bddb38da5d5b7bfaa08a0006da35a8.zip | |
Sync from rust 586ad391f5ee4519acc7cae340e34673bae762b1
| -rw-r--r-- | example/arbitrary_self_types_pointers_and_wrappers.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/example/arbitrary_self_types_pointers_and_wrappers.rs b/example/arbitrary_self_types_pointers_and_wrappers.rs index 5479b0c617b..f0d1f6e2215 100644 --- a/example/arbitrary_self_types_pointers_and_wrappers.rs +++ b/example/arbitrary_self_types_pointers_and_wrappers.rs @@ -32,10 +32,6 @@ impl<T: CoerceUnsized<U>, U> CoerceUnsized<Wrapper<U>> for Wrapper<T> {} impl<T: DispatchFromDyn<U>, U> DispatchFromDyn<Wrapper<U>> for Wrapper<T> {} trait Trait { - // This method isn't object-safe yet. Unsized by-value `self` is object-safe (but not callable - // without unsized_locals), but wrappers around `Self` currently are not. - // FIXME (mikeyhew) uncomment this when unsized rvalues object-safety is implemented - // fn wrapper(self: Wrapper<Self>) -> i32; fn ptr_wrapper(self: Ptr<Wrapper<Self>>) -> i32; fn wrapper_ptr(self: Wrapper<Ptr<Self>>) -> i32; fn wrapper_ptr_wrapper(self: Wrapper<Ptr<Wrapper<Self>>>) -> i32; |
