{"author_name":"hiratara","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiratara.hatenadiary.jp%2Fentry%2F2020%2F03%2F10%2F081837\" title=\"doesn&#39;t have a size known at compile-time - Pixel Pedals of Tomakomai\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://hiratara.hatenadiary.jp/","width":"100%","image_url":null,"published":"2020-03-10 08:18:37","title":"doesn't have a size known at compile-time","provider_name":"Hatena Blog","description":"\u307e\u3060\u6642\u9593\u304c\u306a\u304f\u3066\u8a73\u3057\u304f\u306f\u8abf\u3079\u3066\u306a\u3044\u3051\u3069\u3001\u3053\u3046\u3044\u3046\u66f8\u304d\u65b9\u306f\u3067\u304d\u306a\u3044\u3002\u307e\u3042\u305d\u3046\u304b\u306a\u3068\u601d\u3046\u3002 use std::fmt::Display; struct S<T> (T); fn main() { let s: Box<S<dyn Display>> = Box::new(S(\"\")); } Compiling playground v0.0.1 (/playground) error[E0277]: the size for values of type `dyn std::fmt::Display` cannot be known at compilation time --> src/lib.\u2026","height":"190","url":"https://hiratara.hatenadiary.jp/entry/2020/03/10/081837","version":"1.0","categories":["\u6280\u8853"],"type":"rich","author_url":"https://blog.hatena.ne.jp/hiratara/","provider_url":"https://hatena.blog","blog_title":"Pixel Pedals of Tomakomai"}