rust/tests/ui/cast/codegen-object-shim.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
144 B
Rust
Raw Normal View History

// run-pass
2016-12-18 23:24:42 -06:00
fn main() {
2019-05-28 13:47:21 -05:00
assert_eq!((ToString::to_string as fn(&(dyn ToString+'static)) -> String)(&"foo"),
2016-12-18 23:24:42 -06:00
String::from("foo"));
}