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
55b6f649024b372af901b3412a6d36c4284ccf3d
rust/tests/ui/feature-gates/feature-gate-rustdoc_internals.rs

11 lines
255 B
Rust
Raw Normal View History

Update error message for doc(keyword)
2021-11-08 20:00:22 +01:00
#[doc(keyword = "match")] //~ ERROR: `#[doc(keyword)]` is meant for internal use only
Add feature gate test for "rustdoc_internal" feature
2021-11-08 17:27:56 +01:00
/// wonderful
mod foo {}
rustdoc: show tuple impls as `impl Trait for (T, ...)` This commit adds a new unstable attribute, `#[doc(tuple_varadic)]`, that shows a 1-tuple as `(T, ...)` instead of just `(T,)`, and links to a section in the tuple primitive docs that talks about these.
2022-06-08 19:26:51 -07:00
trait Mine {}
rustdoc: extend `#[doc(tuple_variadic)]` to fn pointers The attribute is also renamed `fake_variadic`.
2022-06-16 09:50:57 -07:00
#[doc(fake_variadic)] //~ ERROR: `#[doc(fake_variadic)]` is meant for internal use only
rustdoc: show tuple impls as `impl Trait for (T, ...)` This commit adds a new unstable attribute, `#[doc(tuple_varadic)]`, that shows a 1-tuple as `(T, ...)` instead of just `(T,)`, and links to a section in the tuple primitive docs that talks about these.
2022-06-08 19:26:51 -07:00
impl<T> Mine for (T,) {}
Add feature gate test for "rustdoc_internal" feature
2021-11-08 17:27:56 +01:00
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 995ms 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