Skip to content

Commit 72e67c8

Browse files
committed
Fix compiling all tests with LLVM
1 parent 5b3bc29 commit 72e67c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/mini_core.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ impl<T: ?Sized, U: ?Sized> CoerceUnsized<Unique<U>> for Unique<T> where T: Unsiz
526526
impl<T: ?Sized, U: ?Sized> DispatchFromDyn<Unique<U>> for Unique<T> where T: Unsize<U> {}
527527

528528
#[lang = "owned_box"]
529-
pub struct Box<T: ?Sized>(Unique<T>, ());
529+
pub struct Box<T: ?Sized, A = ()>(Unique<T>, A);
530530

531531
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Box<U>> for Box<T> {}
532532

@@ -541,7 +541,7 @@ impl<T> Box<T> {
541541
}
542542
}
543543

544-
impl<T: ?Sized> Drop for Box<T> {
544+
impl<T: ?Sized, A> Drop for Box<T, A> {
545545
fn drop(&mut self) {
546546
// drop is currently performed by compiler.
547547
}

0 commit comments

Comments
 (0)