fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
1.3 KiB38 linesraw
1error: couldn't read $DIR/not-a-file.md: $FILE_NOT_FOUND_MSG (os error 2)
2  --> $DIR/external-doc-error.rs:5:17
3   |
4LL | #[doc(include = "not-a-file.md")]
5   |                 ^^^^^^^^^^^^^^^ couldn't read file
6
7error: $DIR/auxiliary/invalid-utf8.txt wasn't a utf-8 file
8  --> $DIR/external-doc-error.rs:8:17
9   |
10LL | #[doc(include = "auxiliary/invalid-utf8.txt")]
11   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ contains invalid utf-8
12
13error: expected path to external documentation
14  --> $DIR/external-doc-error.rs:11:7
15   |
16LL | #[doc(include)]
17   |       ^^^^^^^ help: provide a file path with `=`: `include = "<path>"`
18
19error: expected path to external documentation
20  --> $DIR/external-doc-error.rs:16:7
21   |
22LL | #[doc(include("../README.md"))]
23   |       ^^^^^^^^^^^^^^^^^^^^^^^ help: provide a file path with `=`: `include = "../README.md"`
24
25error: expected path to external documentation
26  --> $DIR/external-doc-error.rs:21:7
27   |
28LL | #[doc(include = 123)]
29   |       ^^^^^^^^^^^^^ help: provide a file path with `=`: `include = "<path>"`
30
31error: expected path to external documentation
32  --> $DIR/external-doc-error.rs:26:7
33   |
34LL | #[doc(include(123))]
35   |       ^^^^^^^^^^^^ help: provide a file path with `=`: `include = "<path>"`
36
37error: aborting due to 6 previous errors
38