summary refs log tree commit diff
path: root/src/test/ui/extern/external-doc-error.stderr
blob: a3be3277de5455691be7259c318e267e9262a3c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
error: couldn't read $DIR/not-a-file.md: $FILE_NOT_FOUND_MSG (os error 2)
  --> $DIR/external-doc-error.rs:5:17
   |
LL | #[doc(include = "not-a-file.md")]
   |                 ^^^^^^^^^^^^^^^ couldn't read file
   |
   = help: external doc paths are relative to the crate root

error: $DIR/auxiliary/invalid-utf8.txt wasn't a utf-8 file
  --> $DIR/external-doc-error.rs:9:17
   |
LL | #[doc(include = "auxiliary/invalid-utf8.txt")]
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ contains invalid utf-8

error: expected path to external documentation
  --> $DIR/external-doc-error.rs:12:7
   |
LL | #[doc(include)]
   |       ^^^^^^^ help: provide a file path with `=`: `include = "<path>"`

error: expected path to external documentation
  --> $DIR/external-doc-error.rs:17:7
   |
LL | #[doc(include("../README.md"))]
   |       ^^^^^^^^^^^^^^^^^^^^^^^ help: provide a file path with `=`: `include = "../README.md"`

error: expected path to external documentation
  --> $DIR/external-doc-error.rs:22:7
   |
LL | #[doc(include = 123)]
   |       ^^^^^^^^^^^^^ help: provide a file path with `=`: `include = "<path>"`

error: expected path to external documentation
  --> $DIR/external-doc-error.rs:27:7
   |
LL | #[doc(include(123))]
   |       ^^^^^^^^^^^^ help: provide a file path with `=`: `include = "<path>"`

error: aborting due to 6 previous errors