2023-04-25 08:04:46 -05:00
|
|
|
// Test for `custom_code_classes_in_docs` feature.
|
|
|
|
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
#![feature(no_core)]
|
|
|
|
#![no_core]
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has 'foo/struct.Bar.html'
|
|
|
|
//@ has - '//*[@id="main-content"]//pre[@class="language-whatever hoho-c"]' 'main;'
|
|
|
|
//@ has - '//*[@id="main-content"]//pre[@class="language-whatever2 haha-c"]' 'main;'
|
|
|
|
//@ has - '//*[@id="main-content"]//pre[@class="language-whatever4 huhu-c"]' 'main;'
|
2023-04-25 08:04:46 -05:00
|
|
|
|
|
|
|
/// ```{class=hoho-c},whatever
|
|
|
|
/// main;
|
|
|
|
/// ```
|
|
|
|
///
|
|
|
|
/// Testing multiple kinds of orders.
|
|
|
|
///
|
|
|
|
/// ```whatever2 {class=haha-c}
|
|
|
|
/// main;
|
|
|
|
/// ```
|
|
|
|
///
|
|
|
|
/// Testing with multiple "unknown". Only the first should be used.
|
|
|
|
///
|
2023-05-02 15:01:28 -05:00
|
|
|
/// ```whatever4,{.huhu-c} whatever5
|
2023-04-25 08:04:46 -05:00
|
|
|
/// main;
|
|
|
|
/// ```
|
|
|
|
pub struct Bar;
|