5 lines
127 B
Rust
5 lines
127 B
Rust
|
|
fn main() {
|
||
|
|
assert_eq!((ToString::to_string as fn(&(ToString+'static)) -> String)(&"foo"),
|
||
|
|
String::from("foo"));
|
||
|
|
}
|