File tree 2 files changed +3
-10
lines changed
2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ use std::autodiff::autodiff_forward;
10
10
extern crate my_macro;
11
11
use my_macro:: autodiff_forward; // bring `autodiff_forward` in scope
12
12
13
- #[ autodiff_forward]
13
+ #[ autodiff_forward( dfoo ) ]
14
14
//[std_autodiff]~^^^ ERROR the name `autodiff_forward` is defined multiple times
15
- //[std_autodiff]~^^ ERROR this rustc version does not support autodiff
16
15
fn foo ( ) { }
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ error[E0252]: the name `autodiff_forward` is defined multiple times
3
3
|
4
4
LL | use std::autodiff::autodiff_forward;
5
5
| ------------------------------- previous import of the macro `autodiff_forward` here
6
- ...
6
+ LL | extern crate my_macro;
7
7
LL | use my_macro::autodiff_forward; // bring `autodiff_forward` in scope
8
8
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ `autodiff_forward` reimported here
9
9
|
@@ -13,12 +13,6 @@ help: you can use `as` to change the binding name of the import
13
13
LL | use my_macro::autodiff_forward as other_autodiff_forward; // bring `autodiff_forward` in scope
14
14
| +++++++++++++++++++++++++
15
15
16
- error: this rustc version does not support autodiff_forward
17
- --> $DIR/visibility.rs:13:1
18
- |
19
- LL | #[autodiff_forward]
20
- | ^^^^^^^^^^^^^^^^^^^
21
-
22
- error: aborting due to 2 previous errors
16
+ error: aborting due to 1 previous error
23
17
24
18
For more information about this error, try `rustc --explain E0252`.
You can’t perform that action at this time.
0 commit comments