Fix failing UI tests
This commit is contained in:
parent
fc9bfd68b5
commit
2787cb23f0
2 changed files with 10 additions and 5 deletions
|
@ -1,8 +1,8 @@
|
||||||
error: an inner attribute is not permitted in this context
|
error: an inner attribute is not permitted in this context
|
||||||
--> $DIR/issue-45296.rs:4:7
|
--> $DIR/issue-45296.rs:4:5
|
||||||
|
|
|
|
||||||
LL | #![allow(unused_variables)]
|
LL | #![allow(unused_variables)]
|
||||||
| ^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
|
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
error: an inner attribute is not permitted following an outer doc comment
|
error: an inner attribute is not permitted following an outer doc comment
|
||||||
--> $DIR/inner-attr-after-doc-comment.rs:6:3
|
--> $DIR/inner-attr-after-doc-comment.rs:6:1
|
||||||
|
|
|
|
||||||
LL | #![recursion_limit="100"]
|
LL | / /**
|
||||||
| ^
|
LL | | * My module
|
||||||
|
LL | | */
|
||||||
|
| |___- previous doc comment
|
||||||
|
LL |
|
||||||
|
LL | #![recursion_limit="100"]
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attibute
|
||||||
|
|
|
|
||||||
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
|
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue