fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: can't use a procedural macro from the same crate that defines it 2 --> $DIR/macro-namespace-reserved-2.rs:25:5 3 | 4LL | my_macro!(); 5 | ^^^^^^^^ 6 7error: can't use a procedural macro from the same crate that defines it 8 --> $DIR/macro-namespace-reserved-2.rs:29:5 9 | 10LL | crate::my_macro_attr!(); 11 | ^^^^^^^^^^^^^^^^^^^^ 12 13error: expected macro, found attribute macro `crate::my_macro_attr` 14 --> $DIR/macro-namespace-reserved-2.rs:29:5 15 | 16LL | crate::my_macro_attr!(); 17 | ^^^^^^^^^^^^^^^^^^^^ not a macro 18 19error: can't use a procedural macro from the same crate that defines it 20 --> $DIR/macro-namespace-reserved-2.rs:34:5 21 | 22LL | crate::MyTrait!(); 23 | ^^^^^^^^^^^^^^ 24 25error: expected macro, found derive macro `crate::MyTrait` 26 --> $DIR/macro-namespace-reserved-2.rs:34:5 27 | 28LL | crate::MyTrait!(); 29 | ^^^^^^^^^^^^^^ not a macro 30 31error: can't use a procedural macro from the same crate that defines it 32 --> $DIR/macro-namespace-reserved-2.rs:42:3 33 | 34LL | #[my_macro_attr] 35 | ^^^^^^^^^^^^^ 36 37error: can't use a procedural macro from the same crate that defines it 38 --> $DIR/macro-namespace-reserved-2.rs:44:3 39 | 40LL | #[MyTrait] 41 | ^^^^^^^ 42 43error: expected attribute, found derive macro `MyTrait` 44 --> $DIR/macro-namespace-reserved-2.rs:44:3 45 | 46LL | #[MyTrait] 47 | ^^^^^^^ not an attribute 48 49error: can't use a procedural macro from the same crate that defines it 50 --> $DIR/macro-namespace-reserved-2.rs:53:10 51 | 52LL | #[derive(my_macro_attr)] 53 | ^^^^^^^^^^^^^ 54 55error: expected derive macro, found attribute macro `my_macro_attr` 56 --> $DIR/macro-namespace-reserved-2.rs:53:10 57 | 58LL | #[derive(my_macro_attr)] 59 | ^^^^^^^^^^^^^ not a derive macro 60 | 61help: remove from the surrounding `derive()` 62 --> $DIR/macro-namespace-reserved-2.rs:53:10 63 | 64LL | #[derive(my_macro_attr)] 65 | ^^^^^^^^^^^^^ 66 = help: add as non-Derive macro 67 `#[my_macro_attr]` 68 69error: can't use a procedural macro from the same crate that defines it 70 --> $DIR/macro-namespace-reserved-2.rs:56:10 71 | 72LL | #[derive(MyTrait)] 73 | ^^^^^^^ 74 75error: can't use a procedural macro from the same crate that defines it 76 --> $DIR/macro-namespace-reserved-2.rs:39:3 77 | 78LL | #[crate::my_macro] 79 | ^^^^^^^^^^^^^^^ 80 81error: expected attribute, found macro `crate::my_macro` 82 --> $DIR/macro-namespace-reserved-2.rs:39:3 83 | 84LL | #[crate::my_macro] 85 | ^^^^^^^^^^^^^^^ not an attribute 86 87error: can't use a procedural macro from the same crate that defines it 88 --> $DIR/macro-namespace-reserved-2.rs:50:10 89 | 90LL | #[derive(crate::my_macro)] 91 | ^^^^^^^^^^^^^^^ 92 93error: expected derive macro, found macro `crate::my_macro` 94 --> $DIR/macro-namespace-reserved-2.rs:50:10 95 | 96LL | #[derive(crate::my_macro)] 97 | ^^^^^^^^^^^^^^^ not a derive macro 98 | 99help: remove from the surrounding `derive()` 100 --> $DIR/macro-namespace-reserved-2.rs:50:10 101 | 102LL | #[derive(crate::my_macro)] 103 | ^^^^^^^^^^^^^^^ 104 = help: add as non-Derive macro 105 `#[crate::my_macro]` 106 107error: cannot find macro `my_macro_attr` in this scope 108 --> $DIR/macro-namespace-reserved-2.rs:28:5 109 | 110LL | my_macro_attr!(); 111 | ^^^^^^^^^^^^^ 112 | 113 = note: `my_macro_attr` is in scope, but it is an attribute: `#[my_macro_attr]` 114 115error: cannot find macro `MyTrait` in this scope 116 --> $DIR/macro-namespace-reserved-2.rs:33:5 117 | 118LL | MyTrait!(); 119 | ^^^^^^^ 120 | 121 = note: `MyTrait` is in scope, but it is a derive macro: `#[derive(MyTrait)]` 122 123error: cannot find attribute `my_macro` in this scope 124 --> $DIR/macro-namespace-reserved-2.rs:38:3 125 | 126LL | #[my_macro] 127 | ^^^^^^^^ 128 | 129 = note: `my_macro` is in scope, but it is a function-like macro 130 131error: cannot find derive macro `my_macro` in this scope 132 --> $DIR/macro-namespace-reserved-2.rs:48:10 133 | 134LL | #[derive(my_macro)] 135 | ^^^^^^^^ 136 | 137 = note: `my_macro` is in scope, but it is a function-like macro 138 139error: cannot find derive macro `my_macro` in this scope 140 --> $DIR/macro-namespace-reserved-2.rs:48:10 141 | 142LL | #[derive(my_macro)] 143 | ^^^^^^^^ 144 | 145 = note: `my_macro` is in scope, but it is a function-like macro 146 147error: aborting due to 20 previous errors 148