From e88e2af959559220412e21f66e9063aeed2f7a8b Mon Sep 17 00:00:00 2001 From: Ben Kimock Date: Fri, 24 Mar 2023 16:24:37 -0400 Subject: [PATCH] Give the cross-crate generic some work to do --- tests/codegen/remap_path_prefix/auxiliary/xcrate-generic.rs | 4 +++- tests/codegen/remap_path_prefix/xcrate-generic.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/codegen/remap_path_prefix/auxiliary/xcrate-generic.rs b/tests/codegen/remap_path_prefix/auxiliary/xcrate-generic.rs index 59092dbf637..15bd0f17421 100644 --- a/tests/codegen/remap_path_prefix/auxiliary/xcrate-generic.rs +++ b/tests/codegen/remap_path_prefix/auxiliary/xcrate-generic.rs @@ -3,4 +3,6 @@ #![crate_type = "lib"] -pub fn foo() {} +pub fn foo() -> T { + T::default() +} diff --git a/tests/codegen/remap_path_prefix/xcrate-generic.rs b/tests/codegen/remap_path_prefix/xcrate-generic.rs index 7a9d2ca9b6b..399deec1fc9 100644 --- a/tests/codegen/remap_path_prefix/xcrate-generic.rs +++ b/tests/codegen/remap_path_prefix/xcrate-generic.rs @@ -7,7 +7,7 @@ extern crate xcrate_generic; pub fn foo() { - xcrate_generic::foo::(); + println!("{}", xcrate_generic::foo::()); } // Here we check that local debuginfo is mapped correctly.