Update tests.
This commit is contained in:
parent
11c879d209
commit
ce95a57a72
6 changed files with 26 additions and 1 deletions
|
@ -3,6 +3,8 @@ error: cannot find macro `test` in this scope
|
||||||
|
|
|
|
||||||
LL | concat!(test!());
|
LL | concat!(test!());
|
||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
||||||
|
= note: `test` is in scope, but it is an attribute
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ struct A;
|
||||||
|
|
||||||
#[derive(println)]
|
#[derive(println)]
|
||||||
//~^ ERROR cannot find derive macro `println`
|
//~^ ERROR cannot find derive macro `println`
|
||||||
|
//~|`println` is in scope, but it is a function-like macro
|
||||||
struct B;
|
struct B;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
error: cannot find macro `bla` in this scope
|
error: cannot find macro `bla` in this scope
|
||||||
--> $DIR/issue-88228.rs:19:5
|
--> $DIR/issue-88228.rs:20:5
|
||||||
|
|
|
|
||||||
LL | bla!();
|
LL | bla!();
|
||||||
| ^^^
|
| ^^^
|
||||||
|
@ -12,6 +12,8 @@ error: cannot find derive macro `println` in this scope
|
||||||
|
|
|
|
||||||
LL | #[derive(println)]
|
LL | #[derive(println)]
|
||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
|
||||||
|
= note: `println` is in scope, but it is a function-like macro
|
||||||
|
|
||||||
error: cannot find derive macro `Bla` in this scope
|
error: cannot find derive macro `Bla` in this scope
|
||||||
--> $DIR/issue-88228.rs:9:10
|
--> $DIR/issue-88228.rs:9:10
|
||||||
|
|
|
@ -8,6 +8,8 @@ LL | inline!();
|
||||||
|
|
|
|
||||||
LL | macro_rules! line {
|
LL | macro_rules! line {
|
||||||
| ----------------- similarly named macro `line` defined here
|
| ----------------- similarly named macro `line` defined here
|
||||||
|
|
|
||||||
|
= note: `inline` is in scope, but it is an attribute
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
|
@ -93,30 +93,40 @@ error: cannot find macro `my_macro_attr` in this scope
|
||||||
|
|
|
|
||||||
LL | my_macro_attr!();
|
LL | my_macro_attr!();
|
||||||
| ^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^
|
||||||
|
|
|
||||||
|
= note: `my_macro_attr` is in scope, but it is an attribute
|
||||||
|
|
||||||
error: cannot find macro `MyTrait` in this scope
|
error: cannot find macro `MyTrait` in this scope
|
||||||
--> $DIR/macro-namespace-reserved-2.rs:33:5
|
--> $DIR/macro-namespace-reserved-2.rs:33:5
|
||||||
|
|
|
|
||||||
LL | MyTrait!();
|
LL | MyTrait!();
|
||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
|
||||||
|
= note: `MyTrait` is in scope, but it is a derive macro
|
||||||
|
|
||||||
error: cannot find attribute `my_macro` in this scope
|
error: cannot find attribute `my_macro` in this scope
|
||||||
--> $DIR/macro-namespace-reserved-2.rs:38:3
|
--> $DIR/macro-namespace-reserved-2.rs:38:3
|
||||||
|
|
|
|
||||||
LL | #[my_macro]
|
LL | #[my_macro]
|
||||||
| ^^^^^^^^
|
| ^^^^^^^^
|
||||||
|
|
|
||||||
|
= note: `my_macro` is in scope, but it is a function-like macro
|
||||||
|
|
||||||
error: cannot find derive macro `my_macro` in this scope
|
error: cannot find derive macro `my_macro` in this scope
|
||||||
--> $DIR/macro-namespace-reserved-2.rs:48:10
|
--> $DIR/macro-namespace-reserved-2.rs:48:10
|
||||||
|
|
|
|
||||||
LL | #[derive(my_macro)]
|
LL | #[derive(my_macro)]
|
||||||
| ^^^^^^^^
|
| ^^^^^^^^
|
||||||
|
|
|
||||||
|
= note: `my_macro` is in scope, but it is a function-like macro
|
||||||
|
|
||||||
error: cannot find derive macro `my_macro` in this scope
|
error: cannot find derive macro `my_macro` in this scope
|
||||||
--> $DIR/macro-namespace-reserved-2.rs:48:10
|
--> $DIR/macro-namespace-reserved-2.rs:48:10
|
||||||
|
|
|
|
||||||
LL | #[derive(my_macro)]
|
LL | #[derive(my_macro)]
|
||||||
| ^^^^^^^^
|
| ^^^^^^^^
|
||||||
|
|
|
||||||
|
= note: `my_macro` is in scope, but it is a function-like macro
|
||||||
|
|
||||||
error: aborting due to 20 previous errors
|
error: aborting due to 20 previous errors
|
||||||
|
|
||||||
|
|
|
@ -3,24 +3,32 @@ error: cannot find derive macro `rustfmt` in this scope
|
||||||
|
|
|
|
||||||
LL | #[derive(rustfmt)]
|
LL | #[derive(rustfmt)]
|
||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
|
||||||
|
= note: `rustfmt` is in scope, but it is not a derive macro
|
||||||
|
|
||||||
error: cannot find derive macro `rustfmt` in this scope
|
error: cannot find derive macro `rustfmt` in this scope
|
||||||
--> $DIR/tool-attributes-misplaced-1.rs:4:10
|
--> $DIR/tool-attributes-misplaced-1.rs:4:10
|
||||||
|
|
|
|
||||||
LL | #[derive(rustfmt)]
|
LL | #[derive(rustfmt)]
|
||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
|
||||||
|
= note: `rustfmt` is in scope, but it is not a derive macro
|
||||||
|
|
||||||
error: cannot find attribute `rustfmt` in this scope
|
error: cannot find attribute `rustfmt` in this scope
|
||||||
--> $DIR/tool-attributes-misplaced-1.rs:9:3
|
--> $DIR/tool-attributes-misplaced-1.rs:9:3
|
||||||
|
|
|
|
||||||
LL | #[rustfmt]
|
LL | #[rustfmt]
|
||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
|
||||||
|
= note: `rustfmt` is in scope, but it is not an attribute
|
||||||
|
|
||||||
error: cannot find macro `rustfmt` in this scope
|
error: cannot find macro `rustfmt` in this scope
|
||||||
--> $DIR/tool-attributes-misplaced-1.rs:15:5
|
--> $DIR/tool-attributes-misplaced-1.rs:15:5
|
||||||
|
|
|
|
||||||
LL | rustfmt!();
|
LL | rustfmt!();
|
||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
|
||||||
|
= note: `rustfmt` is in scope, but it is not a macro
|
||||||
|
|
||||||
error[E0573]: expected type, found tool module `rustfmt`
|
error[E0573]: expected type, found tool module `rustfmt`
|
||||||
--> $DIR/tool-attributes-misplaced-1.rs:1:10
|
--> $DIR/tool-attributes-misplaced-1.rs:1:10
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue