Skip to content

Commit 5a350c1

Browse files
add doc(include) to the save-analysis test
1 parent ab7f02d commit 5a350c1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Extra docs for this struct.

src/test/run-make/save-analysis/foo.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#![feature(box_syntax)]
1313
#![feature(rustc_private)]
1414
#![feature(associated_type_defaults)]
15+
#![feature(external_doc)]
1516

1617
extern crate graphviz;
1718
// A simple rust project
@@ -461,3 +462,6 @@ impl Iterator for SilenceGenerator {
461462
trait Foo {
462463
type Bar = FrameBuffer;
463464
}
465+
466+
#[doc(include="extra-docs.md")]
467+
struct StructWithDocs;

0 commit comments

Comments
 (0)