2024-12-13 15:20:00 +00:00
|
|
|
// Regression test for <https://github.com/rust-lang/rust/issues/134221>.
|
|
|
|
// It checks that even if there are comments in the attributes, the attributes
|
|
|
|
// will still be generated correctly (and therefore fail in this test).
|
|
|
|
|
|
|
|
//@ compile-flags:--test --test-args --test-threads=1
|
|
|
|
//@ failure-status: 101
|
2024-12-25 11:12:17 +00:00
|
|
|
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
|
|
|
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
|
|
|
//@ normalize-stdout: ".rs:\d+:\d+" -> ".rs:$$LINE:$$COL"
|
2024-12-13 15:20:00 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
```rust
|
|
|
|
#![feature(
|
|
|
|
foo, //
|
|
|
|
)]
|
|
|
|
```
|
|
|
|
|
|
|
|
```rust
|
|
|
|
#![feature(
|
|
|
|
foo,
|
|
|
|
)]
|
|
|
|
```
|
2024-12-16 12:59:41 +00:00
|
|
|
|
|
|
|
```rust
|
|
|
|
#![
|
|
|
|
```
|
2024-12-13 15:20:00 +00:00
|
|
|
*/
|