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
145 B
Rust
Raw Normal View History

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