Created
December 16, 2018 13:58
-
-
Save rchaser53/3c9cb3a0c095e002cc38aa2a0852481a to your computer and use it in GitHub Desktop.
situation for borrow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo(&i); | |
foo(&mut i); | |
fn foo<T: Borrow<i32> + Display>(a: T) { | |
println!("a is borrowed: {}", a); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment