Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
58e901b6fd1163172149fd422565523b17eed5f0
rust/tests/rustdoc/issue-18199.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
164 B
Rust
Raw Normal View History

rustdoc: Allowing specifying attrs for doctests This adds support in rustdoc to blanket apply crate attributes to all doc tests for a crate at once. The syntax for doing this is: #![doc(test(attr(...)))] Each meta item in `...` will be applied to each doctest as a crate attribute. cc #18199
2015-04-06 18:39:39 -07:00
// compile-flags:--test
#![doc(test(attr(feature(staged_api))))]
/// ```
Add missing annotations and some tests
2015-11-16 19:54:28 +03:00
/// #![unstable(feature="test", issue="18199")]
rustdoc: Allowing specifying attrs for doctests This adds support in rustdoc to blanket apply crate attributes to all doc tests for a crate at once. The syntax for doing this is: #![doc(test(attr(...)))] Each meta item in `...` will be applied to each doctest as a crate attribute. cc #18199
2015-04-06 18:39:39 -07:00
/// fn main() {}
/// ```
pub fn foo() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1295ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API