]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Test that BaseSign can have a vtable
authorDevrandom <c1.devrandom@niftybox.net>
Fri, 9 Apr 2021 09:16:22 +0000 (11:16 +0200)
committerDevrandom <c1.devrandom@niftybox.net>
Fri, 9 Apr 2021 09:20:58 +0000 (11:20 +0200)
lightning/src/chain/keysinterface.rs

index a1fef4dea28f66a066f00f08edb64329d5f59787..9714e992d5912276f004d964f10eb5e6b10ce235 100644 (file)
@@ -1048,3 +1048,9 @@ impl KeysInterface for KeysManager {
                InMemorySigner::read(&mut std::io::Cursor::new(reader))
        }
 }
+
+// Ensure that BaseSign can have a vtable
+#[test]
+pub fn dyn_sign() {
+       let _signer: Box<dyn BaseSign>;
+}
\ No newline at end of file