mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
14 lines
297 B
Rust
14 lines
297 B
Rust
// This test ensures that warnings are working as expected for "custom_code_classes_in_docs"
|
|
// feature.
|
|
|
|
#![feature(custom_code_classes_in_docs)]
|
|
#![deny(warnings)]
|
|
#![feature(no_core)]
|
|
#![no_core]
|
|
|
|
/// ```{class=}
|
|
/// main;
|
|
/// ```
|
|
//~^^^ ERROR missing class name after `class=`
|
|
pub fn foo() {}
|