Skip to content

Commit

Permalink
Give the cross-crate generic some work to do
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin committed Apr 7, 2023
1 parent e3126b1 commit e88e2af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/codegen/remap_path_prefix/auxiliary/xcrate-generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@

#![crate_type = "lib"]

pub fn foo<T>() {}
pub fn foo<T: Default>() -> T {
T::default()
}
2 changes: 1 addition & 1 deletion tests/codegen/remap_path_prefix/xcrate-generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
extern crate xcrate_generic;

pub fn foo() {
xcrate_generic::foo::<u32>();
println!("{}", xcrate_generic::foo::<u32>());
}

// Here we check that local debuginfo is mapped correctly.
Expand Down

0 comments on commit e88e2af

Please sign in to comment.