Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
issues
/
issue-3702.rs
blob: f48d549b3eb2cc2a386da36c71a7be430d93a7ce [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
dead_code
)]
pub
fn
main
()
{
trait
Text
{
fn
to_string
(&
self
)
->
String
;
}
fn
to_string
(
t
:
Box
<
dyn
Text
>)
{
println
!(
"{}"
,
(*
t
).
to_string
());
}
}