Self struct constructors are unstable.

This commit is contained in:
Dan Gohman
2019-02-26 08:47:15 -08:00
parent 3827bc7a04
commit fb7c1b7795

View File

@@ -409,7 +409,7 @@ mod test_vmshared_signature_index {
impl VMSharedSignatureIndex { impl VMSharedSignatureIndex {
/// Create a new `VMSharedSignatureIndex`. /// Create a new `VMSharedSignatureIndex`.
pub fn new(value: u32) -> Self { pub fn new(value: u32) -> Self {
Self(value) VMSharedSignatureIndex(value)
} }
} }