no_std crates do not link to primitives · Issue #73423 · rust-lang/rust (original) (raw)

#![no_std]

// Link to [u8] pub fn foo() -> u8 {}

The link in x()'s return type does not work. The intra-doc link on Foo does work, but that's because we hardcode the std in it, which should be fixed once this is.

Turns out that the "primitive type u8" only lives in std, see https://doc.rust-lang.org/nightly/std/index.html?search=u8