]> git.proxmox.com Git - rustc.git/blob - tests/rustdoc/intra-doc/no-doc-primitive.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / rustdoc / intra-doc / no-doc-primitive.rs
1 // Crate tree without a `doc(primitive)` module for primitive type linked to by a doc link.
2
3 #![deny(rustdoc::broken_intra_doc_links)]
4 #![feature(no_core, lang_items, rustc_attrs)]
5 #![no_core]
6 #![rustc_coherence_is_core]
7 #![crate_type = "rlib"]
8
9 // @has no_doc_primitive/index.html
10 //! A [`char`] and its [`char::len_utf8`].
11 impl char {
12 pub fn len_utf8(self) -> usize {
13 42
14 }
15 }