2023-04-27 15:09:43 +02:00
|
|
|
// This test ensures that warnings are working as expected for "custom_code_classes_in_docs"
|
|
|
|
// feature.
|
|
|
|
|
|
|
|
#![deny(warnings)]
|
2025-02-03 19:00:20 +00:00
|
|
|
#![feature(no_core, lang_items)]
|
2023-04-27 15:09:43 +02:00
|
|
|
#![no_core]
|
|
|
|
|
2025-02-03 19:00:20 +00:00
|
|
|
#[lang = "sized"]
|
|
|
|
trait Sized {}
|
|
|
|
|
2023-04-27 15:09:43 +02:00
|
|
|
/// ```{class="}
|
|
|
|
/// main;
|
|
|
|
/// ```
|
|
|
|
//~^^^ ERROR unclosed quote string
|
|
|
|
//~| ERROR unclosed quote string
|
|
|
|
/// ```"
|
|
|
|
/// main;
|
|
|
|
/// ```
|
|
|
|
pub fn foo() {}
|