Give the cross-crate generic some work to do
This commit is contained in:
parent
e3126b1084
commit
e88e2af959
2 changed files with 4 additions and 2 deletions
|
@ -3,4 +3,6 @@
|
|||
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn foo<T>() {}
|
||||
pub fn foo<T: Default>() -> T {
|
||||
T::default()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue