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