diff options
Diffstat (limited to 'tests/codegen/remap_path_prefix/auxiliary/xcrate-generic.rs')
-rw-r--r-- | tests/codegen/remap_path_prefix/auxiliary/xcrate-generic.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/codegen/remap_path_prefix/auxiliary/xcrate-generic.rs b/tests/codegen/remap_path_prefix/auxiliary/xcrate-generic.rs index 59092dbf6..15bd0f174 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<T>() {} +pub fn foo<T: Default>() -> T { + T::default() +} |