diff options
| author | Wim Looman <wim@nemo157.com> | 2019-01-03 21:03:29 +0100 |
|---|---|---|
| committer | Wim Looman <wim@nemo157.com> | 2019-01-03 21:03:29 +0100 |
| commit | 5e3a5602994287cd3ea5feb1e23af9043b63abdf (patch) | |
| tree | afe50a8559fc8ff98ce888c36d17a49f32bd6611 /src/liballoc | |
| parent | 48742c68d9e53fba6b48c211140db595fbaa491e (diff) | |
| download | rust-5e3a5602994287cd3ea5feb1e23af9043b63abdf.tar.gz rust-5e3a5602994287cd3ea5feb1e23af9043b63abdf.zip | |
Allow converting Box<T: !Sized> -> Pin<Box<T>>
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/boxed.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index fbd0b948b82..80e259685ab 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -451,7 +451,7 @@ impl<T> From<T> for Box<T> { } #[stable(feature = "pin", since = "1.33.0")] -impl<T> From<Box<T>> for Pin<Box<T>> { +impl<T: ?Sized> From<Box<T>> for Pin<Box<T>> { /// Converts a `Box<T>` into a `Pin<Box<T>>` /// /// This conversion does not allocate on the heap and happens in place. |
