mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
fe2b39f064
Move `std::io::ErrorKind` to `core::io` * Update `rustdoc-html` tests for the new path * Add `core_io` feature to control stability. This replaces the use of `core_io_borrowed_buf` on the `core::io` module itself. * Re-export `core::io::ErrorKind` in `std::io::error`
25 lines
736 B
Rust
25 lines
736 B
Rust
//@ has field/index.html '//a[@href="{{channel}}/core/ops/range/struct.Range.html#structfield.start"]' 'start'
|
|
//@ has field/index.html '//a[@href="{{channel}}/core/io/error/enum.ErrorKind.html#variant.NotFound"]' 'not_found'
|
|
//@ has field/index.html '//a[@href="struct.FieldAndMethod.html#structfield.x"]' 'x'
|
|
//@ has field/index.html '//a[@href="enum.VariantAndMethod.html#variant.X"]' 'X'
|
|
//! [start][std::ops::Range::start]
|
|
//! [not_found][core::io::ErrorKind::NotFound]
|
|
//! [x][field@crate::FieldAndMethod::x]
|
|
//! [X][variant@crate::VariantAndMethod::X]
|
|
|
|
pub struct FieldAndMethod {
|
|
pub x: i32,
|
|
}
|
|
|
|
impl FieldAndMethod {
|
|
pub fn x(&self) {}
|
|
}
|
|
|
|
pub enum VariantAndMethod {
|
|
X {},
|
|
}
|
|
|
|
impl VariantAndMethod {
|
|
fn X() {}
|
|
}
|