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.
Box::new
1 parent 270f0ee commit b03279aCopy full SHA for b03279a
src/liballoc/boxed.rs
@@ -94,6 +94,7 @@ impl<T> Box<T> {
94
/// let x = Box::new(5);
95
/// ```
96
#[stable(feature = "rust1", since = "1.0.0")]
97
+ #[inline(always)]
98
pub fn new(x: T) -> Box<T> {
99
box x
100
}
0 commit comments