Give the cross-crate generic some work to do
This commit is contained in:
parent
e3126b1084
commit
e88e2af959
@ -3,4 +3,6 @@
|
||||
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn foo<T>() {}
|
||||
pub fn foo<T: Default>() -> T {
|
||||
T::default()
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user