Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ljrmorgan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
ljrmorgan
9y ago
This is not really the same though, because the Rust version compiles after the bounds have been added: use std::fmt::Display; fn f<T: Display>(s: T) { println!("{}", s); } fn main() { f(7); } wherea