parent
11c94a1977
commit
cb4553bdae
11 changed files with 109 additions and 2 deletions
|
@ -464,6 +464,7 @@ E0776: include_str!("./error_codes/E0776.md"),
|
|||
E0777: include_str!("./error_codes/E0777.md"),
|
||||
E0778: include_str!("./error_codes/E0778.md"),
|
||||
E0779: include_str!("./error_codes/E0779.md"),
|
||||
E0780: include_str!("./error_codes/E0780.md"),
|
||||
;
|
||||
// E0006, // merged with E0005
|
||||
// E0008, // cannot bind by-move into a pattern guard
|
||||
|
|
19
compiler/rustc_error_codes/src/error_codes/E0780.md
Normal file
19
compiler/rustc_error_codes/src/error_codes/E0780.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
Cannot use `doc(inline)` with anonymous imports
|
||||
|
||||
Erroneous code example:
|
||||
|
||||
```ignore (cannot-doctest-multicrate-project)
|
||||
|
||||
#[doc(inline)] // error: invalid doc argument
|
||||
pub use foo::Foo as _;
|
||||
```
|
||||
|
||||
Anonymous imports are always rendered with `#[doc(no_inline)]`. To fix this
|
||||
error, remove the `#[doc(inline)]` attribute.
|
||||
|
||||
Example:
|
||||
|
||||
```ignore (cannot-doctest-multicrate-project)
|
||||
|
||||
pub use foo::Foo as _;
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue