Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
647f1536d2f50b203ca9a67396225c4f7771e1c8
rust/tests/rustdoc/playground-empty.rs

14 lines
268 B
Rust
Raw Normal View History

rustdoc: Improve playground run buttons The main change is to stop using javascript to generate the URLs and use rustdoc instead. This also adds run buttons to the error index examples.
2016-10-11 09:56:30 +01:00
#![crate_name = "foo"]
#![doc(html_playground_url = "")]
[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives
2024-02-22 12:10:29 +00:00
//@ compile-flags:-Z unstable-options --playground-url https://play.rust-lang.org/
Add compile flags to playground-empty test "Run" links to the playground are not added to the generated documentation if the unstable `--playground-url` argument is not passed to rustdoc. Therefore, without specifying `--playground-url` as a compile-flag, the test doesn't correctly assert that `#![doc(html_playground_url = "")]` removes playground links.
2018-10-04 22:23:19 +02:00
rustdoc: Improve playground run buttons The main change is to stop using javascript to generate the URLs and use rustdoc instead. This also adds run buttons to the error index examples.
2016-10-11 09:56:30 +01:00
//! module docs
//!
//! ```
//! println!("Hello, world!");
//! ```
Update `tests/rustdoc` to new test syntax
2024-06-21 14:03:08 +02:00
//@ !has foo/index.html '//a[@class="test-arrow"]' "Run"
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1233ms 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