File tree 2 files changed +56
-0
lines changed
2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Regression test for <https://github.com/rust-lang/rust/issues/134221>.
2
+ // It checks that even if there are comments in the attributes, the attributes
3
+ // will still be generated correctly (and therefore fail in this test).
4
+
5
+ //@ compile-flags:--test --test-args --test-threads=1
6
+ //@ failure-status: 101
7
+
8
+ /*!
9
+ ```rust
10
+ #![feature(
11
+ foo, //
12
+ )]
13
+ ```
14
+
15
+ ```rust
16
+ #![feature(
17
+ foo,
18
+ )]
19
+ ```
20
+ */
Original file line number Diff line number Diff line change
1
+
2
+ running 2 tests
3
+ test tests/rustdoc-ui/doctest/comment-in-attr-134221.rs - (line 14) ... FAILED
4
+ test tests/rustdoc-ui/doctest/comment-in-attr-134221.rs - (line 8) ... FAILED
5
+
6
+ failures:
7
+
8
+ ---- tests/rustdoc-ui/doctest/comment-in-attr-134221.rs - (line 14) stdout ----
9
+ error[E0635]: unknown feature `foo`
10
+ --> tests/rustdoc-ui/doctest/comment-in-attr-134221.rs:15:3
11
+ |
12
+ LL | foo,
13
+ | ^^^
14
+
15
+ error: aborting due to 1 previous error
16
+
17
+ For more information about this error, try `rustc --explain E0635`.
18
+ Couldn't compile the test.
19
+ ---- tests/rustdoc-ui/doctest/comment-in-attr-134221.rs - (line 8) stdout ----
20
+ error[E0635]: unknown feature `foo`
21
+ --> tests/rustdoc-ui/doctest/comment-in-attr-134221.rs:9:3
22
+ |
23
+ LL | foo, //
24
+ | ^^^
25
+
26
+ error: aborting due to 1 previous error
27
+
28
+ For more information about this error, try `rustc --explain E0635`.
29
+ Couldn't compile the test.
30
+
31
+ failures:
32
+ tests/rustdoc-ui/doctest/comment-in-attr-134221.rs - (line 14)
33
+ tests/rustdoc-ui/doctest/comment-in-attr-134221.rs - (line 8)
34
+
35
+ test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s
36
+
You can’t perform that action at this time.
0 commit comments