1 // normalize-stderr-test: "not-a-file.md:.*\(" -> "not-a-file.md: $$FILE_NOT_FOUND_MSG ("
3 #![feature(external_doc)]
5 #[doc(include = "not-a-file.md")]
6 pub struct SomeStruct; //~^ ERROR couldn't read
7 //~| HELP external doc paths are relative to the crate root
9 #[doc(include = "auxiliary/invalid-utf8.txt")]
10 pub struct InvalidUtf8; //~^ ERROR wasn't a utf-8 file
13 pub struct MissingPath; //~^ ERROR expected path
14 //~| HELP provide a file path with `=`
15 //~| SUGGESTION include = "<path>"
17 #[doc(include("../README.md"))]
18 pub struct InvalidPathSyntax; //~^ ERROR expected path
19 //~| HELP provide a file path with `=`
20 //~| SUGGESTION include = "../README.md"
23 pub struct InvalidPathType; //~^ ERROR expected path
24 //~| HELP provide a file path with `=`
25 //~| SUGGESTION include = "<path>"
28 pub struct InvalidPathSyntaxAndType; //~^ ERROR expected path
29 //~| HELP provide a file path with `=`
30 //~| SUGGESTION include = "<path>"