about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-05-24 17:26:29 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-05-24 17:27:32 +0000
commit72e67c862f9d81a54850d78804ee0de6d0e413a8 (patch)
tree3d3f3ef9f7fdec1bdababd000ccfdc4947c7d9ac
parent5b3bc29008643203b4de3ffb4c5b5141039c88e6 (diff)
downloadrust-72e67c862f9d81a54850d78804ee0de6d0e413a8.tar.gz
rust-72e67c862f9d81a54850d78804ee0de6d0e413a8.zip
Fix compiling all tests with LLVM
-rw-r--r--example/mini_core.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/mini_core.rs b/example/mini_core.rs
index ea97e9f060e..d9ce2d6dfa7 100644
--- a/example/mini_core.rs
+++ b/example/mini_core.rs
@@ -526,7 +526,7 @@ impl<T: ?Sized, U: ?Sized> CoerceUnsized<Unique<U>> for Unique<T> where T: Unsiz
 impl<T: ?Sized, U: ?Sized> DispatchFromDyn<Unique<U>> for Unique<T> where T: Unsize<U> {}
 
 #[lang = "owned_box"]
-pub struct Box<T: ?Sized>(Unique<T>, ());
+pub struct Box<T: ?Sized, A = ()>(Unique<T>, A);
 
 impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Box<U>> for Box<T> {}
 
@@ -541,7 +541,7 @@ impl<T> Box<T> {
     }
 }
 
-impl<T: ?Sized> Drop for Box<T> {
+impl<T: ?Sized, A> Drop for Box<T, A> {
     fn drop(&mut self) {
         // drop is currently performed by compiler.
     }