rust/src/test/run-pass/codegen-object-shim.rs
2019-05-29 00:57:42 -04:00

5 lines
131 B
Rust

fn main() {
assert_eq!((ToString::to_string as fn(&(dyn ToString+'static)) -> String)(&"foo"),
String::from("foo"));
}