2021-11-26 23:03:16 +00:00
|
|
|
#![deny(rustdoc::broken_intra_doc_links)]
|
2022-03-15 15:32:52 +00:00
|
|
|
#![rustc_coherence_is_core]
|
2022-01-06 22:12:48 +00:00
|
|
|
#![allow(incomplete_features)] // inherent_associated_types
|
2022-03-15 15:56:46 +00:00
|
|
|
#![feature(rustc_attrs)]
|
2020-09-08 04:07:40 +00:00
|
|
|
#![feature(no_core)]
|
2021-11-26 23:03:16 +00:00
|
|
|
#![feature(rustdoc_internals)]
|
2022-01-06 22:12:48 +00:00
|
|
|
#![feature(inherent_associated_types)]
|
2022-03-29 17:30:54 +00:00
|
|
|
#![feature(lang_items)]
|
2020-09-08 04:07:40 +00:00
|
|
|
#![no_core]
|
|
|
|
|
|
|
|
/// [Self::f]
|
|
|
|
/// [Self::MAX]
|
2022-01-06 21:59:01 +00:00
|
|
|
// @has prim_self/primitive.usize.html
|
2021-07-11 02:25:36 +00:00
|
|
|
// @has - '//a[@href="primitive.usize.html#method.f"]' 'Self::f'
|
|
|
|
// @has - '//a[@href="primitive.usize.html#associatedconstant.MAX"]' 'Self::MAX'
|
2020-09-08 04:07:40 +00:00
|
|
|
impl usize {
|
|
|
|
/// Some docs
|
|
|
|
pub fn f() {}
|
|
|
|
|
|
|
|
/// 10 and 2^32 are basically the same.
|
|
|
|
pub const MAX: usize = 10;
|
|
|
|
|
2022-01-06 22:12:48 +00:00
|
|
|
// @has - '//a[@href="primitive.usize.html#associatedtype.ME"]' 'Self::ME'
|
|
|
|
/// [Self::ME]
|
|
|
|
pub type ME = usize;
|
2020-09-08 04:07:40 +00:00
|
|
|
}
|
|
|
|
|
2023-03-21 15:44:06 +00:00
|
|
|
#[rustc_doc_primitive = "usize"]
|
2020-09-08 04:07:40 +00:00
|
|
|
/// This has some docs.
|
|
|
|
mod usize {}
|
|
|
|
|
|
|
|
/// [S::f]
|
|
|
|
/// [Self::f]
|
|
|
|
pub struct S;
|
|
|
|
|
|
|
|
impl S {
|
|
|
|
pub fn f() {}
|
|
|
|
}
|
2022-03-29 17:30:54 +00:00
|
|
|
|
|
|
|
#[lang = "sized"]
|
|
|
|
pub trait Sized {}
|