Fix failing UI tests

This commit is contained in:
Evgenii P 2019-07-27 18:24:48 +07:00
parent fc9bfd68b5
commit 2787cb23f0
2 changed files with 10 additions and 5 deletions

View file

@ -1,8 +1,8 @@
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)]
| ^
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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.

View file

@ -1,8 +1,13 @@
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 | / /**
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.