1 // Protocol Buffers - Google's data interchange format 2 // Copyright 2023 Google LLC. All rights reserved. 3 // 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file or at 6 // https://developers.google.com/open-source/licenses/bsd 7 8 //! Tests covering codegen of import public statements. 9 10 use googletest::prelude::*; 11 12 #[gtest] test_import_public_types_are_reexported()13fn test_import_public_types_are_reexported() { 14 let _: import_public_rust_proto::PrimarySrcPubliclyImportedMsg; 15 let _: import_public_rust_proto::PrimarySrcPubliclyImportedMsgView; 16 let _: import_public_rust_proto::PrimarySrcPubliclyImportedMsgMut; 17 18 let _: import_public_rust_proto::PrimarySrcPubliclyImportedEnum; 19 20 let _: import_public_rust_proto::GrandparentMsg; 21 let _: import_public_rust_proto::GrandparentMsgView; 22 let _: import_public_rust_proto::GrandparentMsgMut; 23 24 let _: import_public_rust_proto::GrandparentEnum; 25 26 let _: import_public_rust_proto::NonPrimarySrcPubliclyImportedMsg1; 27 let _: import_public_rust_proto::NonPrimarySrcPubliclyImportedMsg1View; 28 let _: import_public_rust_proto::NonPrimarySrcPubliclyImportedMsg1Mut; 29 30 let _: import_public_rust_proto::NonPrimarySrcPubliclyImportedEnum1; 31 32 let _: import_public_rust_proto::NonPrimarySrcPubliclyImportedMsg2; 33 let _: import_public_rust_proto::NonPrimarySrcPubliclyImportedMsg2View; 34 let _: import_public_rust_proto::NonPrimarySrcPubliclyImportedMsg2Mut; 35 36 let _: import_public_rust_proto::NonPrimarySrcPubliclyImportedEnum2; 37 } 38