Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ferrocene: Rust toolchain to safety-critical environments. Parent comment
This has nothing to do with DST but with type coercion.
The type of `b` is `&&str` but you requested the type to be `&str` which is fine as the compiler can coerce from `&&str` to `&str` in this case.
In the same way you can write
let b: &i32 = &&&&1;
There are no comments on this comment yet.
This has nothing to do with DST but with type coercion.
The type of `b` is `&&str` but you requested the type to be `&str` which is fine as the compiler can coerce from `&&str` to `&str` in this case.
In the same way you can write
and it will compile fine