]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cast/codegen-object-shim.rs
Rollup merge of #97502 - onlineSoftwareDevOK:rustdocTests, r=GuillaumeGomez
[rust.git] / src / test / ui / cast / codegen-object-shim.rs
1 // run-pass
2
3 fn main() {
4     assert_eq!((ToString::to_string as fn(&(dyn ToString+'static)) -> String)(&"foo"),
5         String::from("foo"));
6 }