We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5215f5 commit effa5f0Copy full SHA for effa5f0
tests/ui/sized/sized-box-unsized-content.rs
@@ -1,10 +1,12 @@
1
+//! Check that `Box<T>` is `Sized`, even when `T` is a dynamically sized type.
2
+//! This allows `Box<T>` to be used in contexts requiring `Sized` types.
3
+
4
//@ run-pass
5
6
#![allow(dead_code)]
-// Possibly-dynamic size of typaram should be cleared at pointer boundary.
-
7
8
-fn bar<T: Sized>() { }
9
-fn foo<T>() { bar::<Box<T>>() }
10
-pub fn main() { }
+fn bar<T: Sized>() {}
+fn foo<T>() {
+ bar::<Box<T>>()
11
+}
12
+pub fn main() {}
0 commit comments