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