File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ version = "0.0.0"
4
4
edition = " 2021"
5
5
6
6
[lib ]
7
- doctest = false
8
7
9
8
[dependencies ]
10
9
bitflags = " 1.2.1"
Original file line number Diff line number Diff line change @@ -1648,6 +1648,8 @@ rustc_queries! {
1648
1648
/// a generic type parameter will panic if you call this method on it:
1649
1649
///
1650
1650
/// ```
1651
+ /// use std::fmt::Debug;
1652
+ ///
1651
1653
/// pub trait Foo<T: Debug> {}
1652
1654
/// ```
1653
1655
///
Original file line number Diff line number Diff line change 5
5
//!
6
6
//! # Example
7
7
//! ```rust
8
- //! enum Void {}
8
+ //! #![feature(never_type)]
9
9
//! mod a {
10
10
//! pub mod b {
11
11
//! pub struct SecretlyUninhabited {
15
15
//! }
16
16
//!
17
17
//! mod c {
18
+ //! enum Void {}
18
19
//! pub struct AlsoSecretlyUninhabited {
19
20
//! _priv: Void,
20
21
//! }
35
36
//! `Foo`.
36
37
//!
37
38
//! # Example
38
- //! ```rust
39
+ //! ```ignore(illustrative)
39
40
//! let foo_result: Result<T, Foo> = ... ;
40
41
//! let Ok(t) = foo_result;
41
42
//! ```
You can’t perform that action at this time.
0 commit comments