rust/tests/rustdoc-ui/custom_code_classes_in_docs-warning3.rs
2025-02-04 01:05:31 +00:00

19 lines
351 B
Rust

// This test ensures that warnings are working as expected for "custom_code_classes_in_docs"
// feature.
#![deny(warnings)]
#![feature(no_core, lang_items)]
#![no_core]
#[lang = "sized"]
trait Sized {}
/// ```{class="}
/// main;
/// ```
//~^^^ ERROR unclosed quote string
//~| ERROR unclosed quote string
/// ```"
/// main;
/// ```
pub fn foo() {}